|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A channel is part of the framework's messaging system. It represents a topic to which any object may register and to which any object may send a message. All messages are forwarded to the objects that have registered to the channel.
Senders may either send a fire-and-forget message or a vetoable message. In case of the vetoable message, the message is transmitted to the message listeners only if no listeners files a veto against it.
MessageBus
Method Summary | |
void |
deregisterMessageListener(MessageListener messageListener)
Deregisters the given message listener so that it won't receive any messages any more. |
void |
registerMessageListener(MessageListener messageListener)
Registers the given message listener to retrieve all upcoming messages. |
void |
sendMessage(Message message)
Sends a fire-and-forget message that is forwarded to all message listener. |
void |
sendVetoableMessage(Message message)
Sends a vetoable message. |
Method Detail |
public void registerMessageListener(MessageListener messageListener)
public void deregisterMessageListener(MessageListener messageListener)
public void sendMessage(Message message)
public void sendVetoableMessage(Message message) throws MessageVetoException
MessageVetoException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |