|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.core.mipc.Queue
A simple FIFO Queue implementation that allows for concurrent access by consumers and producers. Remove()'s are blocking.
Constructor Summary | |
Queue()
Creates a new empty FIFO Queue. |
Method Summary | |
void |
add(java.lang.Object item)
Push a new Object onto the bottom of the queue. |
void |
close()
Close the queue. |
boolean |
isEmpty()
Is the queue empty? |
java.lang.Object |
remove()
Remove an Object from the top of the queue. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Queue()
Method Detail |
public java.lang.Object remove() throws java.lang.InterruptedException
java.lang.InterruptedException
public void add(java.lang.Object item)
item
- Add this object.public boolean isEmpty()
public void close()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |