|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
Message[] |
getAllEvents(boolean wait)
get all Messages from this queue. |
Message |
getEvent(boolean wait)
get the next Message from this queue. which particular event is selected depends on the underlying implementation. |
Message[] |
getEvents(int n,
boolean wait)
get up to n events from this queue. |
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. |
Method Detail |
public Message getEvent(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
public Message[] getEvents(int n, boolean wait) throws java.lang.InterruptedException
n
events from this queue.
java.lang.InterruptedException
public Message[] getAllEvents(boolean wait) throws java.lang.InterruptedException
java.lang.InterruptedException
public void put(Message event)
public boolean isEmpty()
public int getSize()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |