public interface IBlockingQueue
Modifier and Type | Interface and Description |
---|---|
static class |
IBlockingQueue.ClosedException
Closed exception.
|
static class |
IBlockingQueue.TimeoutException
Timeout exception.
|
void enqueue(Object element) throws IBlockingQueue.ClosedException
element
- The element.IBlockingQueue.ClosedException
Object dequeue() throws IBlockingQueue.ClosedException
IBlockingQueue.ClosedException
Object dequeue(long timeout) throws IBlockingQueue.ClosedException, IBlockingQueue.TimeoutException
timeout
- the time to wait (in millis) or -1 for no timeout.IBlockingQueue.ClosedException
IBlockingQueue.TimeoutException
void setClosed(boolean closed)
closed
- The closed state.int size()
Copyright © 2012. All Rights Reserved.