|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.common.event.EventQueue<T>
T
- public class EventQueue<T extends Event>
This class is desired to queue events in a synchronized way.
Constructor Summary | |
---|---|
EventQueue()
The constructor. |
Method Summary | |
---|---|
T |
blockingRemove()
Removes the first event of the queue. |
void |
put(T event)
Adds an event to the end of the queue. |
int |
size()
The queue size. |
T |
unblockingRemove()
Removes the first event from the queue. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventQueue()
Method Detail |
---|
public void put(T event)
event
- The event to be queuedpublic T unblockingRemove()
null
public T blockingRemove()
public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |