public class EventQueue<E>
extends java.lang.Object
Constructor and Description |
---|
EventQueue(int countPriorities) |
Modifier and Type | Method and Description |
---|---|
java.util.List<E> |
clearQueue() |
void |
close() |
E |
get() |
E |
getCurrentEvent() |
boolean |
isClosed() |
boolean |
pushBack(E event,
int priority) |
boolean |
put(E event,
int priority) |
void |
reopen() |
public boolean pushBack(E event, int priority)
public boolean put(E event, int priority)
public void close()
public E get() throws EventQueueClosedException
EventQueueClosedException
public boolean isClosed()
public E getCurrentEvent()
public java.util.List<E> clearQueue()
public void reopen()