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 classSubscriber.SynchronizedSubscriberSubscriber 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 SubscriberDispatcher.LegacyAsyncDispatcher.EventWithSubscriber. subscriberFields in com.google.common.eventbus with type parameters of type Subscriber Modifier and Type Field Description private java.util.Iterator<Subscriber>Dispatcher.PerThreadQueuedDispatcher.Event. subscribersprivate java.util.concurrent.ConcurrentMap<java.lang.Class<?>,java.util.concurrent.CopyOnWriteArraySet<Subscriber>>SubscriberRegistry. subscribersAll registered subscribers, indexed by event type.Methods in com.google.common.eventbus that return Subscriber Modifier and Type Method Description (package private) static SubscriberSubscriber. create(EventBus bus, java.lang.Object listener, java.lang.reflect.Method method)Creates aSubscriberformethodonlistener.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 voidDispatcher. dispatch(java.lang.Object event, java.util.Iterator<Subscriber> subscribers)Dispatches the giveneventto the givensubscribers.(package private) voidDispatcher.ImmediateDispatcher. dispatch(java.lang.Object event, java.util.Iterator<Subscriber> subscribers)(package private) voidDispatcher.LegacyAsyncDispatcher. dispatch(java.lang.Object event, java.util.Iterator<Subscriber> subscribers)(package private) voidDispatcher.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)
-