mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-15 08:17:24 +00:00
perf[net]: 重构net的task dispatcher
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user