All Packages Class Hierarchy This Package Previous Next Index
Class AcmeNet.Util.PacketQueue
AcmeNet.Util.PacketQueue
- public class PacketQueue
A FIFO queue that holds PacketInputStreams. There is no limit on the size of the queue.
-
PacketQueue()
-
-
get()
- Remove the PacketInputStream at the head of the queue.
-
put(PacketInputStream)
- Add a PacketInputStream to the tail of the queue.
PacketQueue
public PacketQueue()
put
public void put(PacketInputStream p)
- Add a PacketInputStream to the tail of the queue.
- Parameters:
- p - the PacketInputStream to add
get
public PacketInputStream get()
- Remove the PacketInputStream at the head of the queue. If the queue is empty, the calling
thread is blocked until the queue becomes non-empty.
- Returns:
- the PacketInputStream removed from the head of the queue
All Packages Class Hierarchy This Package Previous Next Index