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 classSubscriber 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 SubscriberDispatcher.LegacyAsyncDispatcher.EventWithSubscriber.subscriberFields in com.google.common.eventbus with type parameters of type SubscriberModifier and TypeFieldDescriptionprivate final Iterator<Subscriber> Dispatcher.PerThreadQueuedDispatcher.Event.subscribersprivate final ConcurrentMap<Class<?>, CopyOnWriteArraySet<Subscriber>> SubscriberRegistry.subscribersAll registered subscribers, indexed by event type.Methods in com.google.common.eventbus that return SubscriberModifier and TypeMethodDescription(package private) static SubscriberCreates aSubscriberformethodonlistener.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 voidDispatcher.dispatch(Object event, Iterator<Subscriber> subscribers) Dispatches the giveneventto the givensubscribers.(package private) voidDispatcher.ImmediateDispatcher.dispatch(Object event, Iterator<Subscriber> subscribers) (package private) voidDispatcher.LegacyAsyncDispatcher.dispatch(Object event, Iterator<Subscriber> subscribers) (package private) voidDispatcher.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