Fixed wrong eventbus

This commit is contained in:
lieght
2025-12-07 02:20:12 +01:00
parent 43a39295dd
commit b6f1b046b1

View File

@@ -1,16 +1,15 @@
package org.toop.framework.eventbus; package org.toop.framework.eventbus;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.toop.framework.eventbus.bus.DefaultEventBus;
import org.toop.framework.eventbus.bus.DisruptorEventBus; import org.toop.framework.eventbus.bus.DisruptorEventBus;
import org.toop.framework.eventbus.bus.EventBus; import org.toop.framework.eventbus.bus.EventBus;
import org.toop.framework.eventbus.holder.SyncEventsHolder; import org.toop.framework.eventbus.holder.AsyncEventsHolder;
import org.toop.framework.eventbus.subscriber.Subscriber; import org.toop.framework.eventbus.subscriber.Subscriber;
public class GlobalEventBus implements EventBus { public class GlobalEventBus implements EventBus {
private static final EventBus INSTANCE = new DefaultEventBus( private static final EventBus INSTANCE = new DisruptorEventBus(
LogManager.getLogger(DisruptorEventBus.class), LogManager.getLogger(DisruptorEventBus.class),
new SyncEventsHolder() new AsyncEventsHolder()
); );
private GlobalEventBus() {} private GlobalEventBus() {}