public class EventQueue
extends java.lang.Object
Constructor and Description |
---|
EventQueue() |
Modifier and Type | Method and Description |
---|---|
void |
addEventToHandle(AbstractEvent ae) |
java.util.LinkedList<AbstractEvent> |
getEventLowerThan(long time)
Return all events whose fireTime is lower the the specified time.
|
AbstractEvent |
getFirst() |
boolean |
isEmpty() |
void |
setEventsToHandle(java.util.concurrent.ConcurrentSkipListSet<AbstractEvent> eventsToHandle) |
int |
size() |
public AbstractEvent getFirst()
public int size()
public void setEventsToHandle(java.util.concurrent.ConcurrentSkipListSet<AbstractEvent> eventsToHandle)
public void addEventToHandle(AbstractEvent ae)
public java.util.LinkedList<AbstractEvent> getEventLowerThan(long time)
time
- - the maximun time to get the eventspublic boolean isEmpty()