org.jacorb.notification.queue
Class BoundedPriorityEventQueue

java.lang.Object
  extended by org.jacorb.notification.queue.AbstractBoundedEventQueue
      extended by org.jacorb.notification.queue.BoundedPriorityEventQueue
All Implemented Interfaces:
EventQueue

public class BoundedPriorityEventQueue
extends AbstractBoundedEventQueue

Version:
$Id: BoundedPriorityEventQueue.java,v 1.5 2004/05/06 12:39:59 nicolas Exp $
Author:
Alphonse Bendt

Constructor Summary
BoundedPriorityEventQueue(int maxSize, EventQueueOverflowStrategy overflowStrategy)
           
 
Method Summary
protected  void addElement(Message event)
           
protected  Message[] getAllElements()
           
protected  Message getEarliestTimeout()
           
protected  Message[] getElements(int max)
           
protected  Message getLeastPriority()
           
protected  Message getNextElement()
           
protected  Message getOldestElement()
           
 int getSize()
          access the current size of this queue.
protected  Message getYoungestElement()
           
 boolean isEmpty()
          check if this queue is empty.
 
Methods inherited from class org.jacorb.notification.queue.AbstractBoundedEventQueue
getAllEvents, getEvent, getEvents, put
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoundedPriorityEventQueue

public BoundedPriorityEventQueue(int maxSize,
                                 EventQueueOverflowStrategy overflowStrategy)
Method Detail

getNextElement

protected Message getNextElement()
Specified by:
getNextElement in class AbstractBoundedEventQueue

getEarliestTimeout

protected Message getEarliestTimeout()
Specified by:
getEarliestTimeout in class AbstractBoundedEventQueue

getOldestElement

protected Message getOldestElement()
Specified by:
getOldestElement in class AbstractBoundedEventQueue

getYoungestElement

protected Message getYoungestElement()
Specified by:
getYoungestElement in class AbstractBoundedEventQueue

getLeastPriority

protected Message getLeastPriority()
Specified by:
getLeastPriority in class AbstractBoundedEventQueue

getElements

protected Message[] getElements(int max)
Specified by:
getElements in class AbstractBoundedEventQueue

addElement

protected void addElement(Message event)
Specified by:
addElement in class AbstractBoundedEventQueue

getAllElements

protected Message[] getAllElements()
Specified by:
getAllElements in class AbstractBoundedEventQueue

isEmpty

public boolean isEmpty()
Description copied from interface: EventQueue
check if this queue is empty.


getSize

public int getSize()
Description copied from interface: EventQueue
access the current size of this queue.