Package com.google.common.eventbus
Class Subscriber.SynchronizedSubscriber
java.lang.Object
com.google.common.eventbus.Subscriber
com.google.common.eventbus.Subscriber.SynchronizedSubscriber
- Enclosing class:
Subscriber
Subscriber that synchronizes invocations of a method to ensure that only one thread may enter
the method at a time.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.eventbus.Subscriber
Subscriber.SynchronizedSubscriber
-
Field Summary
Fields inherited from class com.google.common.eventbus.Subscriber
target
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
SynchronizedSubscriber
(EventBus bus, Object target, Method method) -
Method Summary
Modifier and TypeMethodDescription(package private) void
invokeSubscriberMethod
(Object event) Invokes the subscriber method.Methods inherited from class com.google.common.eventbus.Subscriber
create, dispatchEvent, equals, hashCode
-
Constructor Details
-
SynchronizedSubscriber
-
-
Method Details
-
invokeSubscriberMethod
Description copied from class:Subscriber
Invokes the subscriber method. This method can be overridden to make the invocation synchronized.- Overrides:
invokeSubscriberMethod
in classSubscriber
- Throws:
InvocationTargetException
-