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.


Constructor Index

 o Queue()

Method Index

 o get()
Remove the object at the head of the queue.
 o put(Object)
Add an object to the tail of the queue.

Constructors

 o Queue
 public Queue()

Methods

 o put
 public synchronized void put(Object o)
Add an object to the tail of the queue.

Parameters:
o - the object to add
 o 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