public interface EventQueue extends EngineModule
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears this event queue.
|
Event |
get(long timeout)
Returns the first event from the queue.
|
int |
getCapacity()
Returns the capacity of the queue.
|
String |
getName()
Returns the name of the event queue.
|
int |
getSize()
Returns the size of the queue.
|
void |
put(Event event)
Puts a new event into the event queue.
|
void |
setCapacity(int capacity)
Sets the capacity of the queue.
|
getEngine, setEngine, setNameisFailed, isNew, isRunning, isStarting, isStopping, isTerminated, shutdown, startupvoid put(Event event) throws QueueFullException
event - a new event.QueueFullException - when the queue is full.Event get(long timeout) throws InterruptedException
timeout - the timeout in milliseconds.null when there was none.InterruptedException - if any.void setCapacity(int capacity)
capacity - the capacity of the queue.int getCapacity()
int getSize()
String getName()
getName in interface EngineModulevoid clear()
Copyright © 2016–2017 Softelnet. All rights reserved.