|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.beepcore.beep.lib.MessageQueue
Is a convience class that is registered with a Channel
as a
MessageListener
. This receives messages and places them on a
queue to be retrieved by calling getNextMessage
. The same
instance of MessageQueue
can be registered with more than one
Channel
providing an easy mechanism to service the requests on
several Channel
s with the same thread(s).
Constructor Summary | |
MessageQueue()
|
Method Summary | |
Message |
getNextMessage()
Gets the next message on the queue blocking if none are available. |
void |
receiveMSG(Message message)
Receives a BEEP message of type MSG. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MessageQueue()
Method Detail |
public Message getNextMessage() throws java.lang.InterruptedException
java.lang.InterruptedException
public void receiveMSG(Message message)
MessageListener
receiveMSG
in interface MessageListener
message
- Message
org.beepcore.beep.core.Message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |