All Packages Class Hierarchy This Package Previous Next Index
Class AcmeNet.Util.Queue
AcmeNet.Util.Queue
- public class Queue
A first-in, first-out queue for objects. There is no limit on the number of items
that can be in the queue.
-
Queue()
-
-
get()
- Remove the object at the head of the queue.
-
put(Object)
- Add an object to the tail of the queue.
Queue
public Queue()
put
public synchronized void put(Object o)
- Add an object to the tail of the queue.
- Parameters:
- o - the object to add
get
public synchronized Object get()
- Remove the object at the head of the queue. If the queue is empty, the calling
thread is blocked until the queue becomes non-empty.
- Returns:
- the object removed from the head of the queue
All Packages Class Hierarchy This Package Previous Next Index