|
Jadex 0.96-beta1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBlockingQueue
A queue that blocks until an element is available.
Nested Class Summary | |
---|---|
static class |
IBlockingQueue.ClosedException
Closed exception. |
static class |
IBlockingQueue.TimeoutException
Timeout exception. |
Method Summary | |
---|---|
Object |
dequeue()
Dequeue an element. |
Object |
dequeue(long timeout)
Dequeue an element. |
void |
enqueue(Object element)
Enqueue an element. |
void |
setClosed(boolean closed)
Open/close the queue. |
int |
size()
Get the size. |
Method Detail |
---|
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()
|
Jadex 0.96-beta1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.