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 |
---|---|
interface |
AllowConcurrentEvents
Marks an event subscriber method as being thread-safe.
|
class |
AsyncEventBus
An
EventBus that takes the Executor of your choice and uses it to dispatch events,
allowing dispatch to occur asynchronously. |
class |
DeadEvent
Wraps an event that was posted, but which had no subscribers and thus could not be delivered.
|
(package private) class |
Dispatcher
Handler for dispatching events to subscribers, providing different event ordering guarantees that
make sense for different situations.
|
class |
EventBus
Dispatches events to listeners, and provides ways for listeners to register themselves.
|
interface |
Subscribe
Marks a method as an event subscriber.
|
(package private) class |
Subscriber
A subscriber method on a specific object, plus the executor that should be used for dispatching
events to it.
|
class |
SubscriberExceptionContext
Context for an exception thrown by a subscriber.
|
interface |
SubscriberExceptionHandler
Handler for exceptions thrown by event subscribers.
|
(package private) class |
SubscriberRegistry
Registry of subscribers to a single event bus.
|