@CheckReturnValue @ParametersAreNonnullByDefault
Package com.google.common.eventbus
Discouraged in favor of dependency injection and
concurrency frameworks, EventBus allows publish-subscribe-style communication.
See the Guava User Guide article on EventBus
.
-
Interface Summary Interface Description SubscriberExceptionHandler Handler for exceptions thrown by event subscribers. -
Class Summary Class Description AsyncEventBus AnEventBus
that takes the Executor of your choice and uses it to dispatch events, allowing dispatch to occur asynchronously.DeadEvent Wraps an event that was posted, but which had no subscribers and thus could not be delivered.EventBus Dispatches events to listeners, and provides ways for listeners to register themselves.SubscriberExceptionContext Context for an exception thrown by a subscriber. -
Annotation Types Summary Annotation Type Description AllowConcurrentEvents Marks an event subscriber method as being thread-safe.Subscribe Marks a method as an event subscriber.