|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ws4d.java.structures.Queue org.ws4d.java.structures.WaitingQueue
public class WaitingQueue
Synchronized Queue. The enqueueing thread must wait, until someone takes the object out of the queue.
Constructor Summary | |
---|---|
WaitingQueue()
|
Method Summary | |
---|---|
void |
clear()
Removes all entries from this queue and notifies all waiting thread. |
Iterator |
iterator()
Returns an iterator for this queue. |
Methods inherited from class org.ws4d.java.structures.Queue |
---|
checkFirst, enqueue, enqueueAtBeginning, get, isEmpty, size |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WaitingQueue()
Method Detail |
---|
public Iterator iterator()
This iterator allows to access every item inside this queue. If an element is removed using this iterator the waiting thread will be notified.
iterator
in class Queue
public void clear()
clear
in class Queue
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |