| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final Event[] | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | EventQueue(int size)
This is an internal method and should not be called by applications using the API |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv synchronized void | |
| public synchronized boolean | Returns: false if there were no events left on the queue, otherwise true.The event to populate event)Populates the provided event with the details of the event on the head of the queue. |
| private int | |
| pack-priv synchronized boolean |
| head | back to summary |
|---|---|
| private int head | |
| queue | back to summary |
|---|---|
| private final Event[] queue | |
| tail | back to summary |
|---|---|
| private int tail | |
| EventQueue | back to summary |
|---|---|
| public EventQueue(int size) This is an internal method and should not be called by applications using the API | |
| add | back to summary |
|---|---|
| pack-priv synchronized void add(Event event) This is an internal method and should not be called by applications using the API | |
| getNextEvent | back to summary |
|---|---|
| public synchronized boolean getNextEvent(Event event) Populates the provided event with the details of the event on the head of the queue.
| |
| increase | back to summary |
|---|---|
| private int increase(int x) This is an internal method and should not be called by applications using the API | |
| isFull | back to summary |
|---|---|
| pack-priv synchronized boolean isFull() Check if the queue is full
| |