|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.openorb.notify.queue.DefaultEventQueue
public class DefaultEventQueue
An event queue is an object into which events are pushed and pulled. Pushing an event is adding an event to this queue, pulling an event is retrieving an event from this queue. Events in the queue can be either Untyped, Structured, StructuredSequence and Type events. This event queue implementation provides three orderers. These are Fifo, Priority and Deadline.
| Constructor Summary | |
|---|---|
DefaultEventQueue()
Default constructor with a Fifo order policy |
|
DefaultEventQueue(int orderPolicy)
Constructor with specified order policy |
|
| Method Summary | |
|---|---|
int |
getQueueSize()
Indicate if the event queue is empty |
boolean |
isEmpty()
Indicate if the event queue is empty |
java.lang.Object |
pullEvent()
Pull an event from the queue |
boolean |
pushEvent(java.lang.Object event)
Push an event into the queue |
boolean |
pushEvent(java.lang.Object event,
java.lang.Short priorityKey,
java.lang.Long deadlineKey)
Push an event into the queue |
void |
setOrderPolicy(int orderPolicy)
Set the event queue order policy |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultEventQueue()
public DefaultEventQueue(int orderPolicy)
| Method Detail |
|---|
public void setOrderPolicy(int orderPolicy)
setOrderPolicy in interface EventQueuepublic boolean pushEvent(java.lang.Object event)
pushEvent in interface EventQueue
public boolean pushEvent(java.lang.Object event,
java.lang.Short priorityKey,
java.lang.Long deadlineKey)
pushEvent in interface EventQueuepublic java.lang.Object pullEvent()
pullEvent in interface EventQueuepublic int getQueueSize()
getQueueSize in interface EventQueuepublic boolean isEmpty()
isEmpty in interface EventQueue
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||