perf[net]: 重构net的task dispatcher

This commit is contained in:
jaysunxiao committed 2021-10-13 22:02:45 +08:00
1 parent 2610334776
commit e8aab562aa
15 files changed
+110 -117

No files matched your search

@@ -78,7 +78,7 @@ public class CronOrmPersister extends AbstractOrmPersister {
@Override
public void run() {
if (!OrmContext.isStop()) {
EventBus.asyncExecute(entityDef.getClazz().hashCode()).execute(new Runnable() {
EventBus.execute(entityDef.getClazz().hashCode()).execute(new Runnable() {
@Override
public void run() {
entityCaches.persistAll();
@@ -47,7 +47,7 @@ public class TimeOrmPersister extends AbstractOrmPersister {
@Override
public void run() {
if (!OrmContext.isStop()) {
EventBus.asyncExecute(entityDef.getClazz().hashCode()).execute(new Runnable() {
EventBus.execute(entityDef.getClazz().hashCode()).execute(new Runnable() {
@Override
public void run() {
entityCaches.persistAll();