| 
 | Jadex 0.96-beta1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjadex.util.collection.ArrayBlockingQueue
public class ArrayBlockingQueue
Blocking queue implemented as array. The array is expanded automatically when the queue grows.
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from interface jadex.util.collection.IBlockingQueue | 
|---|
| IBlockingQueue.ClosedException, IBlockingQueue.TimeoutException | 
| Constructor Summary | |
|---|---|
| ArrayBlockingQueue()Create a new blocking queue. | |
| Method Summary | |
|---|---|
|  Object | dequeue()Remove an object from the queue (blocks until an element is available). | 
|  Object | dequeue(long timeout)Dequeue an element. | 
|  void | enqueue(Object o)Add an element to the end of the queue. | 
|  void | setClosed(boolean closed)Close the queue. | 
|  int | size()Get the number of elements in the queue. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ArrayBlockingQueue()
| Method Detail | 
|---|
public int size()
size in interface IBlockingQueuepublic void enqueue(Object o)
enqueue in interface IBlockingQueueo - The element.
public Object dequeue(long timeout)
               throws IBlockingQueue.ClosedException,
                      IBlockingQueue.TimeoutException
dequeue in interface IBlockingQueuetimeout - the time to wait (in millis) or -1 for no timeout.
IBlockingQueue.ClosedException
IBlockingQueue.TimeoutExceptionpublic Object dequeue()
dequeue in interface IBlockingQueuepublic void setClosed(boolean closed)
setClosed in interface IBlockingQueueclosed - The closed state.| 
 | 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.