org.openorb.notify.queue
Class DeadlineOrderer
public
class
DeadlineOrderer
extends Object
implements Orderer
This orderer implements a log(n) sorting mechanism using the java.util.TreeMap object.
The key will be an integer from either a priority or a deadline.
Author: Olivier Modica
Method Summary |
int | getQueueSize()
Get the current queue size. |
Object | pullEvent()
Invoked to pull an event from the queue. |
void | pushEvent(Object event, Short priorityKey, Long deadlineKey)
Invoked to push an event into the queue with respect to order. |
public DeadlineOrderer()
Default constructor.
public int getQueueSize()
Get the current queue size.
public Object pullEvent()
Invoked to pull an event from the queue.
public void pushEvent(Object event, Short priorityKey, Long deadlineKey)
Invoked to push an event into the queue with respect to order.