| Constructor and Description |
|---|
AsyncEventBus(Executor executor)
Creates a new EventBus with the
executor of your choice |
AsyncEventBus(Executor executor,
SubscriberExceptionHandler subscriberExceptionHandler)
Creates a new EventBus with provided
executor and SubscriberExceptionHandler |
AsyncEventBus(String identifier,
Executor executor)
Creates a new EventBus with the
executor of your choice |
public AsyncEventBus(String identifier, Executor executor)
executor of your choiceidentifier - Name for bus, useful in logging if there are multiple busesexecutor - Executor to use to dispatch events. You should shutdown this when all events are finished
posting to the bus.public AsyncEventBus(Executor executor, SubscriberExceptionHandler subscriberExceptionHandler)
executor and SubscriberExceptionHandlerexecutor - Executor to use to dispatch events. You should shutdown this when all events are finished
posting to the bus.subscriberExceptionHandler - Handler for exceptions thrown by subscribers methodspublic AsyncEventBus(Executor executor)
executor of your choiceexecutor - Executor to use to dispatch events. You should shutdown this when all events are finished
posting to the bus.Copyright © 2019. All rights reserved.