|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.quadrique.jbuildingblocks.core.thread.JbbBlockingFifoQueue
public class JbbBlockingFifoQueue
This is a thread-safe blocking FIFO queue (a calling thread will be blocked until there is an object that can be removed from the queue). Objects are removed from the queue in FIFO order.
| Method Summary | |
|---|---|
void |
add(Object zObject)
Add an object at the end of the collection |
boolean |
isEmpty()
|
static JbbBlockingFifoQueue |
newInstance()
|
Object |
remove()
Remove the FIFO object from the queue. |
void |
shutdown()
Shutdowns the blocking queue by releasing all blocked threads (they will return from remove() with a null reference) and setting up the internal flag to prevent any additional Object to be added |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static JbbBlockingFifoQueue newInstance()
public final void add(Object zObject)
zObject - the Object instance to add to the queuepublic final Object remove()
public final boolean isEmpty()
public void shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||