- All Implemented Interfaces:
- java.util.Iterator<E>
public class QueueReader<E>
extends java.lang.Object
implements java.util.Iterator<E>
A queue of Object's. One can add objects to the queue, and they are
later read by a QueueReader. One can create arbitrary numbers of
QueueReader's for a queue, and each one receives all the Object's that
are added. Only objects that have not been read by all the QueueReader's
are kept. A QueueReader only receives the Object's added to the queue
after the QueueReader was created.
- Author:
- Ondrej Lhotak