Class SynchronizedHandlerInvocation

    • Constructor Detail

      • SynchronizedHandlerInvocation

        public SynchronizedHandlerInvocation​(IHandlerInvocation delegate)
    • Method Detail

      • invoke

        public void invoke​(java.lang.Object listener,
                           java.lang.Object message,
                           MessagePublication publication)
        Invoke the message delivery logic of this handler
        Specified by:
        invoke in interface IHandlerInvocation<java.lang.Object,​java.lang.Object>
        Parameters:
        listener - The listener that will receive the message. This can be a reference to a method object from the java reflection api or any other wrapper that can be used to invoke the handler
        message - The message to be delivered to the handler. This can be any object compatible with the object type that the handler consumes