public class EventQueue extends Object
The events are some integers. The format of this integer is producer / consumer dependent.
| Modifier and Type | Method and Description | 
|---|---|
void | 
enqueudEvent(int event)
Adds an event in the queue of events. 
 | 
void | 
enqueudEvents(int[] events)
Adds the events in the queue of events, respecting the array order. 
 | 
static EventQueue | 
get()
Gets the MicroUI events queue. 
 | 
int | 
getEvent()
Reads an event in the queue of events. 
 | 
int | 
size()
Returns the number of elements in this list. 
 | 
public void enqueudEvent(int event)
event - the event to add.public void enqueudEvents(int[] events)
events - the events to add.public static EventQueue get()
public int getEvent()
             throws InterruptedException
InterruptedException - if any thread interrupted the current thread before or while the current thread was waiting for a
             notification.public int size()