|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.genuine.organizer.internal.DefaultChannel
Default implementation of a channel.
Constructor Summary | |
(package private) |
DefaultChannel(java.lang.String channelName)
|
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. |
java.lang.String |
toString()
Prints the name of the channel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
DefaultChannel(java.lang.String channelName)
Method Detail |
public void registerMessageListener(MessageListener messageListener)
Channel
registerMessageListener
in interface Channel
public void deregisterMessageListener(MessageListener messageListener)
Channel
deregisterMessageListener
in interface Channel
public void sendMessage(Message message)
Channel
sendMessage
in interface Channel
public void sendVetoableMessage(Message message) throws MessageVetoException
Channel
sendVetoableMessage
in interface Channel
MessageVetoException
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |