Package com.google.common.eventbus
@CheckReturnValue
@NullMarked
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
.
-
ClassDescriptionMarks an event subscriber method as being thread-safe.An
EventBus
that takes the Executor of your choice and uses it to dispatch events, allowing dispatch to occur asynchronously.Wraps an event that was posted, but which had no subscribers and thus could not be delivered.Dispatches events to listeners, and provides ways for listeners to register themselves.Marks a method as an event subscriber.Context for an exception thrown by a subscriber.Handler for exceptions thrown by event subscribers.