Uses of Class
com.google.common.eventbus.Dispatcher
Packages that use Dispatcher
Package
Description
Discouraged in favor of dependency injection and
concurrency frameworks, EventBus allows publish-subscribe-style communication.
-
Uses of Dispatcher in com.google.common.eventbus
Subclasses of Dispatcher in com.google.common.eventbusModifier and TypeClassDescriptionprivate static final class
Implementation ofimmediate()
.private static final class
Implementation of alegacyAsync()
dispatcher.private static final class
Implementation of aperThreadDispatchQueue()
dispatcher.Fields in com.google.common.eventbus declared as DispatcherMethods in com.google.common.eventbus that return DispatcherModifier and TypeMethodDescription(package private) static Dispatcher
Dispatcher.immediate()
Returns a dispatcher that dispatches events to subscribers immediately as they're posted without using an intermediate queue to change the dispatch order.(package private) static Dispatcher
Dispatcher.legacyAsync()
Returns a dispatcher that queues events that are posted in a single global queue.(package private) static Dispatcher
Dispatcher.perThreadDispatchQueue()
Returns a dispatcher that queues events that are posted reentrantly on a thread that is already dispatching an event, guaranteeing that all events posted on a single thread are dispatched to all subscribers in the order they are posted.Constructors in com.google.common.eventbus with parameters of type DispatcherModifierConstructorDescription(package private)
EventBus
(String identifier, Executor executor, Dispatcher dispatcher, SubscriberExceptionHandler exceptionHandler)