public class DefaultEventBus
extends org.bushe.swing.event.ThreadSafeEventService
EventService
implementation for SciJava.
It is called "DefaultEventBus" rather than "DefaultEventService" to avoid a
name clash with DefaultEventService
, which is not an
EventService
but rather a SciJava
Service
implementation.
Constructor and Description |
---|
DefaultEventBus(ThreadService threadService,
LogService log) |
Modifier and Type | Method and Description |
---|---|
void |
publish(Object event) |
protected void |
publish(Object event,
String topic,
Object eventObj,
List subscribers,
List vetoSubscribers,
StackTraceElement[] callingStack) |
void |
publish(String topicName,
Object eventObj) |
void |
publish(Type genericType,
Object event) |
void |
publishLater(Object event) |
void |
publishLater(String topicName,
Object eventObj) |
void |
publishLater(Type genericType,
Object event) |
void |
publishNow(Object event) |
void |
publishNow(String topicName,
Object eventObj) |
void |
publishNow(Type genericType,
Object event) |
addEventToCache, clearAllSubscribers, clearCache, clearCache, clearCache, clearCache, decWeakRefPlusProxySubscriberCount, getCachedEvents, getCachedTopicData, getCacheSizeForEventClass, getCacheSizeForTopic, getCleanupPeriodMS, getCleanupStartThreshhold, getCleanupStopThreshold, getDefaultCacheSizePerClassOrTopic, getLastEvent, getLastTopicData, getRealSubscriberAndCleanStaleSubscriberIfNecessary, getSubscribers, getSubscribers, getSubscribers, getSubscribers, getSubscribersByPattern, getSubscribersToClass, getSubscribersToExactClass, getSubscribersToPattern, getSubscribersToTopic, getVetoEventListeners, getVetoSubscribers, getVetoSubscribers, getVetoSubscribers, getVetoSubscribersByPattern, getVetoSubscribersToClass, getVetoSubscribersToExactClass, getVetoSubscribersToTopic, handleException, handleException, handleVeto, incWeakRefPlusProxySubscriberCount, onEventException, removeProxySubscriber, setCacheSizeForEventClass, setCacheSizeForTopic, setCacheSizeForTopic, setCleanupPeriodMS, setCleanupStartThreshhold, setCleanupStopThreshold, setDefaultCacheSizePerClassOrTopic, setStatus, subscribe, subscribe, subscribe, subscribe, subscribe, subscribeExactly, subscribeExactlyStrongly, subscribeStrongly, subscribeStrongly, subscribeStrongly, subscribeTiming, subscribeVetoException, subscribeVetoListener, subscribeVetoListener, subscribeVetoListener, subscribeVetoListener, subscribeVetoListenerExactly, subscribeVetoListenerExactlyStrongly, subscribeVetoListenerStrongly, subscribeVetoListenerStrongly, subscribeVetoListenerStrongly, unsubscribe, unsubscribe, unsubscribe, unsubscribe, unsubscribe, unsubscribe, unsubscribe, unsubscribeExactly, unsubscribeExactly, unsubscribeVeto, unsubscribeVeto, unsubscribeVeto, unsubscribeVetoExactly, unsubscribeVetoListener, unsubscribeVetoListener, unsubscribeVetoListener, unsubscribeVetoListener, unsubscribeVetoListenerExactly
public DefaultEventBus(ThreadService threadService, LogService log)
public void publishNow(Object event)
public void publishLater(Object event)
public void publish(Object event)
publish
in interface org.bushe.swing.event.EventService
publish
in class org.bushe.swing.event.ThreadSafeEventService
public void publish(Type genericType, Object event)
publish
in interface org.bushe.swing.event.EventService
publish
in class org.bushe.swing.event.ThreadSafeEventService
public void publish(String topicName, Object eventObj)
publish
in interface org.bushe.swing.event.EventService
publish
in class org.bushe.swing.event.ThreadSafeEventService
Copyright © 2015–2022 SciJava. All rights reserved.