|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openorb.notify.queue.DeadlineOrderer
public class DeadlineOrderer
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.
Constructor Summary | |
---|---|
DeadlineOrderer()
Default constructor. |
Method Summary | |
---|---|
int |
getQueueSize()
Get the current queue size. |
java.lang.Object |
pullEvent()
Invoked to pull an event from the queue. |
void |
pushEvent(java.lang.Object event,
java.lang.Short priorityKey,
java.lang.Long deadlineKey)
Invoked to push an event into the queue with respect to order. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeadlineOrderer()
Method Detail |
---|
public void pushEvent(java.lang.Object event, java.lang.Short priorityKey, java.lang.Long deadlineKey)
pushEvent
in interface Orderer
public java.lang.Object pullEvent()
pullEvent
in interface Orderer
public int getQueueSize()
getQueueSize
in interface Orderer
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |