This commit is contained in:
lieght
2025-12-07 15:04:02 +01:00
parent b2e4e7d810
commit f62219605f
2 changed files with 3 additions and 3 deletions

View File

@@ -3,13 +3,13 @@ package org.toop.framework.eventbus;
import org.apache.logging.log4j.LogManager;
import org.toop.framework.eventbus.bus.DisruptorEventBus;
import org.toop.framework.eventbus.bus.EventBus;
import org.toop.framework.eventbus.holder.AsyncArraySubscriberStore;
import org.toop.framework.eventbus.holder.DefaultSubscriberStore;
import org.toop.framework.eventbus.subscriber.Subscriber;
public class GlobalEventBus implements EventBus {
private static final EventBus INSTANCE = new DisruptorEventBus(
LogManager.getLogger(DisruptorEventBus.class),
new AsyncArraySubscriberStore()
new DefaultSubscriberStore()
);
private GlobalEventBus() {}

View File

@@ -4,7 +4,7 @@ import org.toop.framework.eventbus.subscriber.Subscriber;
import java.util.concurrent.ConcurrentHashMap;
public class AsyncArraySubscriberStore implements SubscriberStore {
public class DefaultSubscriberStore implements SubscriberStore {
private static final Subscriber<?, ?>[] EMPTY = new Subscriber[0];