Class Subscriber.SynchronizedSubscriber

  • Enclosing class:
    Subscriber

    static final class Subscriber.SynchronizedSubscriber
    extends Subscriber
    Subscriber that synchronizes invocations of a method to ensure that only one thread may enter the method at a time.
    • Constructor Detail

      • SynchronizedSubscriber

        private SynchronizedSubscriber​(EventBus bus,
                                       java.lang.Object target,
                                       java.lang.reflect.Method method)
    • Method Detail

      • invokeSubscriberMethod

        void invokeSubscriberMethod​(java.lang.Object event)
                             throws java.lang.reflect.InvocationTargetException
        Description copied from class: Subscriber
        Invokes the subscriber method. This method can be overridden to make the invocation synchronized.
        Overrides:
        invokeSubscriberMethod in class Subscriber
        Throws:
        java.lang.reflect.InvocationTargetException