|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A queue interface with standard enqueue/dequeue operations.
Method Summary | |
java.lang.Object |
dequeue()
Dequeue one data item. |
java.lang.Object |
dequeue(long timeout)
Dequeue one data item within timeout period. |
java.lang.Object[] |
dequeueAll()
Dequeue all the data items currently in the queue. |
void |
enqueue(java.lang.Object item)
Enqueue one data item. |
void |
enqueueAll(java.lang.Object[] items)
Enqueue an array of data items. |
int |
size()
Return the size of the queue. |
Method Detail |
public int size()
public void enqueue(java.lang.Object item)
public void enqueueAll(java.lang.Object[] items)
public java.lang.Object dequeue() throws java.lang.InterruptedException
java.lang.InterruptedException
public java.lang.Object dequeue(long timeout) throws java.lang.InterruptedException
java.lang.InterruptedException
public java.lang.Object[] dequeueAll()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |