org.ocd.msgbus
Class MsgBusTopic
java.lang.Object
|
+--org.ocd.msgbus.MsgBusTopic
- public class MsgBusTopic
- extends java.lang.Object
MsgBusTopic
Description:
Constructor Summary |
MsgBusTopic(java.lang.String pFullName)
|
MsgBusTopic(java.lang.String pParentName,
java.lang.String pName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MsgBusTopic
public MsgBusTopic(java.lang.String pFullName)
MsgBusTopic
public MsgBusTopic(java.lang.String pParentName,
java.lang.String pName)
addListener
public void addListener(IMsgBusListener pListener)
removeListener
public void removeListener(IMsgBusListener pListener)
containsListener
public boolean containsListener(IMsgBusListener pListener)
- Return true if this Topic contains the specified Listener
getListeners
public IMsgBusListener[] getListeners()
- Returns a copy of the Listeners for this Topic
- Returns:
- vector of listeners
getName
public java.lang.String getName()
fire
public MsgBusMessage fire(MsgBusMessage pEvent,
IMsgBusListener pResultListener,
boolean pUniCast)
- Fires a Message to all of this Topics Listeners
If the pResultListener is not null then it will have a result posted to it
The source of the message will also have the result posted to it.
- Parameters:
Message
- to fire to listenersListener
- to recieve the result from any listenerspUniCast
- is true if only first Listener should be notified.- Returns:
- result for any calling methods that want a synchronize return.