jrun.jms.core.messagemgr
Class MessageQueue

java.lang.Object
  |
  +--jrun.jms.core.messagemgr.MessageQueue

public class MessageQueue
extends java.lang.Object


Constructor Summary
MessageQueue()
           
MessageQueue(java.util.Comparator comparator)
           
 
Method Summary
 void add(MessageHandle handle)
          Add an element to the "superSet".
 void clear()
          Remove all the elements from the queue
 boolean contains(MessageHandle handle)
          Check if the specified object exists
 MessageHandle first()
          Return (but don't remove) the first element on the queue
 boolean isEmpty()
          Check if the queue is empty
 java.util.Iterator iterator()
          Return an iterator to the list
 boolean remove(MessageHandle handle)
          Remove the object from the queue
 int size()
          Return the number elements in the queue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageQueue

public MessageQueue()

MessageQueue

public MessageQueue(java.util.Comparator comparator)
Method Detail

add

public void add(MessageHandle handle)
Add an element to the "superSet". The list is always appropriately ordered.

contains

public boolean contains(MessageHandle handle)
Check if the specified object exists
Parameters:
object - - object to check
Returns:
boolean - true if it is contained

isEmpty

public boolean isEmpty()
Check if the queue is empty
Returns:
boolean - true if the queue is empty

iterator

public java.util.Iterator iterator()
Return an iterator to the list
Returns:
Iterator

remove

public boolean remove(MessageHandle handle)
Remove the object from the queue
Parameters:
object - object to remove

clear

public void clear()
Remove all the elements from the queue

size

public int size()
Return the number elements in the queue
Returns:
int size of the queue

first

public MessageHandle first()
Return (but don't remove) the first element on the queue
Returns:
Object


Copyright � 2002 Macromedia Corporation. All Rights Reserved.