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.


Constructor Index

 o PacketQueue()

Method Index

 o get()
Remove the PacketInputStream at the head of the queue.
 o put(PacketInputStream)
Add a PacketInputStream to the tail of the queue.

Constructors

 o PacketQueue
 public PacketQueue()

Methods

 o put
 public void put(PacketInputStream p)
Add a PacketInputStream to the tail of the queue.

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