org.ocd.msgbus
Interface IMsgBusListener
- public interface IMsgBusListener
Method Summary |
MsgBusMessage |
messagePosted(java.lang.String topic,
MsgBusMessage msg)
This method is called by the Message Bus when an topic that this
Listener has subscribed to recieves an Event |
void |
resultPosted(java.lang.String topic,
MsgBusMessage msg)
This method is called when an MessageBus Listener posts a result
back on the MessageBus. |
resultPosted
public void resultPosted(java.lang.String topic,
MsgBusMessage msg)
- This method is called when an MessageBus Listener posts a result
back on the MessageBus. When a caller of the MessageBus calls fireMessage
it can optionally pass an instance of a IMsgBusListener to be called
when the result of that message occurs. The passed message listener will
recieve the result message when it is passed back from the receiving listeners.
- Parameters:
topic
- that the result returned frommsg
- result information that returned to that topic
messagePosted
public MsgBusMessage messagePosted(java.lang.String topic,
MsgBusMessage msg)
- This method is called by the Message Bus when an topic that this
Listener has subscribed to recieves an Event
- Parameters:
topic
- that the message occured onmsg
- information that was passed to that topic- Returns:
- result of processing this event.