org.jacorb.notification.queue
Class BoundedDeadlineEventQueue

java.lang.Object
  extended byorg.jacorb.notification.queue.AbstractBoundedEventQueue
      extended byorg.jacorb.notification.queue.AbstractBoundedEventHeap
          extended byorg.jacorb.notification.queue.BoundedDeadlineEventQueue
All Implemented Interfaces:
MessageQueue

public class BoundedDeadlineEventQueue
extends AbstractBoundedEventHeap

Note that most of the methods are not thread-safe. this causes no problem as the methods are not intended to be directly called by clients. instead the superclass implements the interface EventQueue and invokes the methods thereby synchronizing access.

Version:
$Id: BoundedDeadlineEventQueue.java,v 1.9 2006/02/25 15:28:40 alphonse.bendt Exp $
Author:
Alphonse Bendt

Nested Class Summary
 
Nested classes inherited from class org.jacorb.notification.queue.MessageQueue
MessageQueue.DiscardListener
 
Constructor Summary
BoundedDeadlineEventQueue(int maxSize, EventQueueOverflowStrategy overflowStrategy)
           
 
Method Summary
protected  Message getEarliestTimeout()
           
protected  Message getLeastPriority()
           
protected  Message getOldestElement()
           
 java.lang.String getOrderPolicyName()
           
protected  Message getYoungestElement()
           
 
Methods inherited from class org.jacorb.notification.queue.AbstractBoundedEventHeap
addElement, getAllElements, getElements, getNextElement, getNextHeapElement, getSize, isEmpty, removeFirstElement, toString
 
Methods inherited from class org.jacorb.notification.queue.AbstractBoundedEventQueue
addDiscardListener, getAllMessages, getDiscardPolicyName, getMessage, getMessages, put, removeDiscardListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BoundedDeadlineEventQueue

public BoundedDeadlineEventQueue(int maxSize,
                                 EventQueueOverflowStrategy overflowStrategy)
Method Detail

getOrderPolicyName

public java.lang.String getOrderPolicyName()
Specified by:
getOrderPolicyName in interface MessageQueue
Specified by:
getOrderPolicyName in class AbstractBoundedEventQueue

getOldestElement

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

getYoungestElement

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

getEarliestTimeout

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

getLeastPriority

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