|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.collection.ThreadWorkQueue
public class ThreadWorkQueue
Simple queue implementation based on a Linked List per thread. Objects can be added to the queue tail or queue head.
Constructor Summary | |
---|---|
ThreadWorkQueue()
|
Method Summary | |
---|---|
void |
add(java.lang.Object event)
Adds event to the end of the event queue. |
void |
addFront(java.lang.Object event)
Adds event to the front of the queue. |
java.lang.Object |
next()
Returns the next event to getSelectListEvents, or null if there are no more events. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadWorkQueue()
Method Detail |
---|
public void add(java.lang.Object event)
event
- to addpublic void addFront(java.lang.Object event)
event
- to addpublic java.lang.Object next()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |