Uses of Class
com.google.common.eventbus.Subscriber
-
Packages that use Subscriber Package Description com.google.common.eventbus The EventBus allows publish-subscribe-style communication between components without requiring the components to explicitly register with one another (and thus be aware of each other). -
-
Uses of Subscriber in com.google.common.eventbus
Subclasses of Subscriber in com.google.common.eventbus Modifier and Type Class Description (package private) static class
Subscriber.SynchronizedSubscriber
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 Subscriber Modifier and Type Field Description private Subscriber
Dispatcher.LegacyAsyncDispatcher.EventWithSubscriber. subscriber
Fields in com.google.common.eventbus with type parameters of type Subscriber Modifier and Type Field Description private java.util.Iterator<Subscriber>
Dispatcher.PerThreadQueuedDispatcher.Event. subscribers
private java.util.concurrent.ConcurrentMap<java.lang.Class<?>,java.util.concurrent.CopyOnWriteArraySet<Subscriber>>
SubscriberRegistry. subscribers
All registered subscribers, indexed by event type.Methods in com.google.common.eventbus that return Subscriber Modifier and Type Method Description (package private) static Subscriber
Subscriber. create(EventBus bus, java.lang.Object listener, java.lang.reflect.Method method)
Creates aSubscriber
formethod
onlistener
.Methods in com.google.common.eventbus that return types with arguments of type Subscriber Modifier and Type Method Description private Multimap<java.lang.Class<?>,Subscriber>
SubscriberRegistry. findAllSubscribers(java.lang.Object listener)
Returns all subscribers for the given listener grouped by the type of event they subscribe to.(package private) java.util.Iterator<Subscriber>
SubscriberRegistry. getSubscribers(java.lang.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) java.util.Set<Subscriber>
SubscriberRegistry. getSubscribersForTesting(java.lang.Class<?> eventType)
Method parameters in com.google.common.eventbus with type arguments of type Subscriber Modifier and Type Method Description (package private) abstract void
Dispatcher. dispatch(java.lang.Object event, java.util.Iterator<Subscriber> subscribers)
Dispatches the givenevent
to the givensubscribers
.(package private) void
Dispatcher.ImmediateDispatcher. dispatch(java.lang.Object event, java.util.Iterator<Subscriber> subscribers)
(package private) void
Dispatcher.LegacyAsyncDispatcher. dispatch(java.lang.Object event, java.util.Iterator<Subscriber> subscribers)
(package private) void
Dispatcher.PerThreadQueuedDispatcher. dispatch(java.lang.Object event, java.util.Iterator<Subscriber> subscribers)
Constructors in com.google.common.eventbus with parameters of type Subscriber Constructor Description EventWithSubscriber(java.lang.Object event, Subscriber subscriber)
Constructor parameters in com.google.common.eventbus with type arguments of type Subscriber Constructor Description Event(java.lang.Object event, java.util.Iterator<Subscriber> subscribers)
-