Package com.google.common.eventbus
@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
.
-
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.Handler for dispatching events to subscribers, providing different event ordering guarantees that make sense for different situations.Implementation ofDispatcher.immediate()
.Implementation of aDispatcher.legacyAsync()
dispatcher.Implementation of aDispatcher.perThreadDispatchQueue()
dispatcher.Marks all "top-level" types as non-null in a way that is recognized by Kotlin.Dispatches events to listeners, and provides ways for listeners to register themselves.Simple logging handler for subscriber exceptions.Annotates a "top-level" type-variable usage that takes its nullness from the type argument supplied by the user of the class.Marks a method as an event subscriber.A subscriber method on a specific object, plus the executor that should be used for dispatching events to it.Subscriber that synchronizes invocations of a method to ensure that only one thread may enter the method at a time.Context for an exception thrown by a subscriber.Handler for exceptions thrown by event subscribers.Registry of subscribers to a single event bus.