|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageQueue
Nested Class Summary | |
---|---|
static interface |
MessageQueue.DiscardListener
|
Method Summary | |
---|---|
void |
addDiscardListener(MessageQueue.DiscardListener listener)
|
Message[] |
getAllMessages(boolean wait)
get all Messages from this queue. |
java.lang.String |
getDiscardPolicyName()
|
Message |
getMessage(boolean wait)
get the next Message from this queue. |
Message[] |
getMessages(int n,
boolean wait)
get up to n events from this queue. |
java.lang.String |
getOrderPolicyName()
|
int |
getSize()
access the current size of this queue. |
boolean |
isEmpty()
check if this queue is empty. |
void |
put(Message event)
put a Message into this queue. |
void |
removeDiscardListener(MessageQueue.DiscardListener listener)
|
Method Detail |
---|
void addDiscardListener(MessageQueue.DiscardListener listener)
void removeDiscardListener(MessageQueue.DiscardListener listener)
Message getMessage(boolean wait) throws java.lang.InterruptedException
wait
- a boolean
value. If this parameter is
set to true the queue will block until an element is
available. If the parameter is set to false the queue will
return null in case it is empty.
java.lang.InterruptedException
Message[] getMessages(int n, boolean wait) throws java.lang.InterruptedException
n
events from this queue.
n
- number of requested messageswait
- a boolean
value. If this parameter is
set to true the queue will block until an element is
available. If the parameter is set to false the queue will
return null in case it is empty.
java.lang.InterruptedException
Message[] getAllMessages(boolean wait) throws java.lang.InterruptedException
wait
- a boolean
value. If this parameter is
set to true the queue will block until an element is
available. If the parameter is set to false the queue will
return null in case it is empty.
java.lang.InterruptedException
void put(Message event)
boolean isEmpty()
int getSize()
java.lang.String getOrderPolicyName()
java.lang.String getDiscardPolicyName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |