All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JavaGroups.Queue

java.lang.Object
   |
   +----JavaGroups.Queue

public class Queue
extends Object

Constructor Index

 o Queue()

Method Index

 o Add(Object)
 o AddAtHead(Object)
 o Close(boolean)
Marks the queues as closed.
 o GetContents()
 o main(String[])
 o Peek()
 o Peek(long)
Doesn't remove element
 o Remove()
 o Remove(long)
 o RemoveElement(Object)
 o Reset()
 o Size()
 o toString()

Constructors

 o Queue
 public Queue()

Methods

 o Add
 public void Add(Object msg) throws QueueClosed
 o AddAtHead
 public void AddAtHead(Object msg) throws QueueClosed
 o Remove
 public Object Remove() throws QueueClosed
 o RemoveElement
 public void RemoveElement(Object element) throws QueueClosed
 o Peek
 public Object Peek() throws QueueClosed
 o Remove
 public Object Remove(long timeout) throws QueueClosed, Timeout
 o Peek
 public Object Peek(long timeout) throws QueueClosed, Timeout
Doesn't remove element

 o Close
 public synchronized void Close(boolean flush_entries)
Marks the queues as closed. When an Add or Remove operation is attempted on a closed queue, an exception is thrown.

Parameters:
flush_entries - When true, a end-of-entries marker is added to the end of the queue. Entries may be added and removed, but when the end-of-entries marker is encountered, the queue is marked as closed. This allows to flush pending messages before clsing the queue.
 o Reset
 public synchronized void Reset()
 o Size
 public int Size()
 o toString
 public String toString()
Overrides:
toString in class Object
 o GetContents
 public Vector GetContents()
 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index