| 
 | Jadex 0.941 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A queue that blocks until an element is available.
| Nested Class Summary | |
| static class | IBlockingQueue.ClosedExceptionClosed exception. | 
| static class | IBlockingQueue.TimeoutExceptionTimeout 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 | 
public void enqueue(Object element)
             throws IBlockingQueue.ClosedException
element - The element.
IBlockingQueue.ClosedException
public Object dequeue()
               throws IBlockingQueue.ClosedException
IBlockingQueue.ClosedException
public Object dequeue(long timeout)
               throws IBlockingQueue.ClosedException,
                      IBlockingQueue.TimeoutException
timeout - the time to wait (in millis) or -1 for no timeout.
IBlockingQueue.ClosedException
IBlockingQueue.TimeoutExceptionpublic void setClosed(boolean closed)
closed - The closed state.public int size()
| 
 | Jadex 0.941 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (C) 2002-2005 Lars Braubach, Alexander Pokahr, Andrzej Walczak - University of Hamburg. Use is subject to license terms.