Uses of Class
com.google.common.eventbus.Subscriber
Packages that use Subscriber
Package
Description
Discouraged in favor of dependency injection and
concurrency frameworks, EventBus allows publish-subscribe-style communication.
-
Uses of Subscriber in com.google.common.eventbus
Subclasses of Subscriber in com.google.common.eventbusModifier and TypeClassDescription(package private) static final class
Subscriber that synchronizes invocations of a method to ensure that only one thread may enter the method at a time.Fields in com.google.common.eventbus declared as SubscriberModifier and TypeFieldDescriptionprivate final Subscriber
Dispatcher.LegacyAsyncDispatcher.EventWithSubscriber.subscriber
Fields in com.google.common.eventbus with type parameters of type SubscriberModifier and TypeFieldDescriptionprivate final Iterator
<Subscriber> Dispatcher.PerThreadQueuedDispatcher.Event.subscribers
private final ConcurrentMap
<Class<?>, CopyOnWriteArraySet<Subscriber>> SubscriberRegistry.subscribers
All registered subscribers, indexed by event type.Methods in com.google.common.eventbus that return SubscriberModifier and TypeMethodDescription(package private) static Subscriber
Creates aSubscriber
formethod
onlistener
.Methods in com.google.common.eventbus that return types with arguments of type SubscriberModifier and TypeMethodDescriptionprivate Multimap
<Class<?>, Subscriber> SubscriberRegistry.findAllSubscribers
(Object listener) Returns all subscribers for the given listener grouped by the type of event they subscribe to.(package private) Iterator
<Subscriber> SubscriberRegistry.getSubscribers
(Object event) Gets an iterator representing an immutable snapshot of all subscribers to the given event at the time this method is called.(package private) Set
<Subscriber> SubscriberRegistry.getSubscribersForTesting
(Class<?> eventType) Method parameters in com.google.common.eventbus with type arguments of type SubscriberModifier and TypeMethodDescription(package private) abstract void
Dispatcher.dispatch
(Object event, Iterator<Subscriber> subscribers) Dispatches the givenevent
to the givensubscribers
.(package private) void
Dispatcher.ImmediateDispatcher.dispatch
(Object event, Iterator<Subscriber> subscribers) (package private) void
Dispatcher.LegacyAsyncDispatcher.dispatch
(Object event, Iterator<Subscriber> subscribers) (package private) void
Dispatcher.PerThreadQueuedDispatcher.dispatch
(Object event, Iterator<Subscriber> subscribers) Constructors in com.google.common.eventbus with parameters of type SubscriberConstructor parameters in com.google.common.eventbus with type arguments of type Subscriber