public class MessageDispatcher extends AbstractSubscriptionContextAware implements IMessageDispatcher
Constructor and Description |
---|
MessageDispatcher(SubscriptionContext context,
IHandlerInvocation invocation) |
Modifier and Type | Method and Description |
---|---|
void |
dispatch(MessagePublication publication,
Object message,
Iterable listeners)
Delivers the given message to the given set of listeners.
|
IHandlerInvocation |
getInvocation()
Get the handler invocation that will be used to deliver the
message to each listener.
|
getContext
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContext
public MessageDispatcher(SubscriptionContext context, IHandlerInvocation invocation)
public void dispatch(MessagePublication publication, Object message, Iterable listeners)
IMessageDispatcher
dispatch
in interface IMessageDispatcher
publication
- The message publication that initiated the dispatchmessage
- The message that should be delivered to the listenerslisteners
- The listeners that should receive the messagepublic IHandlerInvocation getInvocation()
IMessageDispatcher
getInvocation
in interface IMessageDispatcher
Copyright © 2018. All rights reserved.