See the Guava User Guide article on EventBus.
| Modifier and Type | Interface and Description |
|---|---|
| public interface | SubscriberExceptionHandler
Handler for exceptions thrown by event subscribers. |
| Modifier and Type | Annotation and Description |
|---|---|
| public @interface | AllowConcurrentEvents
Marks an event subscriber method as being thread-safe. |
| pack-priv @interface | ElementTypesAreNonnullByDefault
Marks all "top-level" types as non-null in a way that is recognized by Kotlin. |
| pack-priv @interface | ParametricNullness
Annotates a "top-level" type-variable usage that takes its nullness from the type argument supplied by the user of the class. |
| public @interface | Subscribe
Marks a method as an event subscriber. |
| Modifier and Type | Class and Description |
|---|---|
| public class | AsyncEventBus
An |
| public class | DeadEvent
Wraps an event that was posted, but which had no subscribers and thus could not be delivered. |
| pack-priv abstract class | Dispatcher
Handler for dispatching events to subscribers, providing different event ordering guarantees that make sense for different situations. |
| public class | EventBus
Dispatches events to listeners, and provides ways for listeners to register themselves. |
| pack-priv class | Subscriber
A subscriber method on a specific object, plus the executor that should be used for dispatching events to it. |
| public class | SubscriberExceptionContext
Context for an exception thrown by a subscriber. |
| pack-priv class | SubscriberRegistry
Registry of subscribers to a single event bus. |