wt.util
Interface Consumer.Queue
- All Known Implementing Classes:
- Consumer.SynchronizedQueue
- Enclosing interface:
- Consumer
- protected static interface Consumer.Queue
Utility interface that the Consumer uses to buffer data.
Subclasses can provide a different queue implementation by overriding
the createQueue() method.
Not on finalize and close:
The close() method should be called when no further entries will be added
to the queue. The finalize() method should be called when the queue should
be shut down immediately, regardless of whether or not there are still entries
in the queue.
enqueue
public void enqueue(Object o)
throws IllegalStateException
- Throws:
IllegalStateException
dequeue
public Object dequeue()
throws NoSuchElementException
- Throws:
NoSuchElementException
hasNext
public boolean hasNext()
size
public int size()
finalize
public void finalize()
isFinalized
public boolean isFinalized()
close
public void close()
isClosed
public boolean isClosed()