| Constructor and Description |
|---|
AsyncEventBus(java.util.concurrent.Executor executor)
Creates a new AsyncEventBus that will use
executor to dispatch
events. |
AsyncEventBus(java.util.concurrent.Executor executor,
SubscriberExceptionHandler subscriberExceptionHandler)
Creates a new AsyncEventBus that will use
executor to dispatch
events. |
AsyncEventBus(java.lang.String identifier,
java.util.concurrent.Executor executor)
Creates a new AsyncEventBus that will use
executor to dispatch
events. |
identifier, post, register, toString, unregisterpublic AsyncEventBus(java.lang.String identifier,
java.util.concurrent.Executor executor)
executor to dispatch
events. Assigns identifier as the bus's name for logging purposes.identifier - short name for the bus, for logging purposes.executor - Executor to use to dispatch events. It is the caller's
responsibility to shut down the executor after the last event has
been posted to this event bus.public AsyncEventBus(java.util.concurrent.Executor executor,
SubscriberExceptionHandler subscriberExceptionHandler)
executor to dispatch
events.executor - Executor to use to dispatch events. It is the caller's
responsibility to shut down the executor after the last event has
been posted to this event bus.subscriberExceptionHandler - Handler used to handle exceptions thrown from subscribers.
See SubscriberExceptionHandler for more information.public AsyncEventBus(java.util.concurrent.Executor executor)
executor to dispatch
events.executor - Executor to use to dispatch events. It is the caller's
responsibility to shut down the executor after the last event has
been posted to this event bus.