public class EventQueue
extends java.lang.Object
Constructor and Description |
---|
EventQueue() |
Modifier and Type | Method and Description |
---|---|
void |
addEvent(Event event)
Add a event to the queue
|
Event |
getEvent()
Retrieves and removes the head of this queue,
or returns null if this queue is empty.
|
Event |
waitEvent()
Retrieves and removes the head of this queue,
waiting if necessary until an element becomes
available.
|
public void addEvent(Event event)
event
- the event to be addedpublic Event waitEvent()
public Event getEvent()