Package | Description |
---|---|
com.google.common.eventbus |
The EventBus allows publish-subscribe-style communication between components without requiring
the components to explicitly register with one another (and thus be aware of each other).
|
Modifier and Type | Class and Description |
---|---|
private static class |
Dispatcher.ImmediateDispatcher
Implementation of
immediate() . |
private static class |
Dispatcher.LegacyAsyncDispatcher
Implementation of a
legacyAsync() dispatcher. |
private static class |
Dispatcher.PerThreadQueuedDispatcher
Implementation of a
perThreadDispatchQueue() dispatcher. |
Modifier and Type | Field and Description |
---|---|
private Dispatcher |
EventBus.dispatcher |
Modifier and Type | Method and Description |
---|---|
(package private) static Dispatcher |
Dispatcher.immediate()
Returns a dispatcher that dispatches events to subscribers immediately as they're posted
without using an intermediate queue to change the dispatch order.
|
(package private) static Dispatcher |
Dispatcher.legacyAsync()
Returns a dispatcher that queues events that are posted in a single global queue.
|
(package private) static Dispatcher |
Dispatcher.perThreadDispatchQueue()
Returns a dispatcher that queues events that are posted reentrantly on a thread that is already
dispatching an event, guaranteeing that all events posted on a single thread are dispatched to
all subscribers in the order they are posted.
|
Constructor and Description |
---|
EventBus(java.lang.String identifier,
java.util.concurrent.Executor executor,
Dispatcher dispatcher,
SubscriberExceptionHandler exceptionHandler) |