org.jacorb.notification.queue

Class BoundedPriorityEventQueue

public class BoundedPriorityEventQueue extends AbstractBoundedEventHeap

Note that the methods do not need to be 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: BoundedPriorityEventQueue.java,v 1.12 2006/02/25 15:28:40 alphonse.bendt Exp $

Author: Alphonse Bendt

Constructor Summary
BoundedPriorityEventQueue(int maxSize, EventQueueOverflowStrategy overflowStrategy)
Method Summary
protected MessagegetEarliestTimeout()
protected MessagegetLeastPriority()
protected MessagegetOldestElement()
StringgetOrderPolicyName()
protected MessagegetYoungestElement()

Constructor Detail

BoundedPriorityEventQueue

public BoundedPriorityEventQueue(int maxSize, EventQueueOverflowStrategy overflowStrategy)

Method Detail

getEarliestTimeout

protected Message getEarliestTimeout()

getLeastPriority

protected Message getLeastPriority()

getOldestElement

protected Message getOldestElement()

getOrderPolicyName

public String getOrderPolicyName()

getYoungestElement

protected Message getYoungestElement()