Package com.google.common.eventbus
Class AsyncEventBus
java.lang.Object
com.google.common.eventbus.EventBus
com.google.common.eventbus.AsyncEventBus
Deprecated.
The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
An
EventBus that takes the Executor of your choice and uses it to
dispatch events, allowing dispatch to occur asynchronously.- Since:
- 10.0
-
Constructor Summary
ConstructorsConstructorDescriptionAsyncEventBus(String identifier, Executor executor) Deprecated.Creates a new AsyncEventBus that will useexecutorto dispatch events.AsyncEventBus(Executor executor) Deprecated.Creates a new AsyncEventBus that will useexecutorto dispatch events. -
Method Summary
Methods inherited from class com.google.common.eventbus.EventBus
post, register, unregister
-
Constructor Details
-
AsyncEventBus
Deprecated.Creates a new AsyncEventBus that will useexecutorto dispatch events. Assignsidentifieras the bus's name for logging purposes.- Parameters:
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.
-
AsyncEventBus
Deprecated.Creates a new AsyncEventBus that will useexecutorto dispatch events.- Parameters:
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.
-