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.ClosedExceptionObject dequeue() throws IBlockingQueue.ClosedException
IBlockingQueue.ClosedExceptionObject dequeue(long timeout) throws IBlockingQueue.ClosedException, IBlockingQueue.TimeoutException
timeout - the time to wait (in millis) or -1 for no timeout.IBlockingQueue.ClosedExceptionIBlockingQueue.TimeoutExceptionvoid setClosed(boolean closed)
closed - The closed state.int size()
Copyright © 2012. All Rights Reserved.