Class SynchronizedHandlerInvocation
java.lang.Object
net.engio.mbassy.subscription.AbstractSubscriptionContextAware
net.engio.mbassy.dispatch.SynchronizedHandlerInvocation
- All Implemented Interfaces:
IHandlerInvocation<Object,Object>, ISubscriptionContextAware
public class SynchronizedHandlerInvocation
extends AbstractSubscriptionContextAware
implements IHandlerInvocation<Object,Object>
Synchronizes message handler invocations for all handlers that specify @Synchronized
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinvoke(Object listener, Object message, MessagePublication publication) Invoke the message delivery logic of this handlerMethods inherited from class AbstractSubscriptionContextAware
getContextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ISubscriptionContextAware
getContext
-
Field Details
-
delegate
-
-
Constructor Details
-
SynchronizedHandlerInvocation
-
-
Method Details
-
invoke
Invoke the message delivery logic of this handler- Specified by:
invokein interfaceIHandlerInvocation<Object,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 handlermessage- The message to be delivered to the handler. This can be any object compatible with the object type that the handler consumes
-