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