public class SynchroEventQueue extends BaseEventQueue
capacity| Constructor and Description |
|---|
SynchroEventQueue(String name)
Creates a new priority event queue.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears this event queue.
|
void |
doStartup()
Starts up this managed entity.
|
org.openksavi.sponge.event.Event |
get(long timeout)
Returns the first event from the queue.
|
int |
getSize()
Returns the current size of the queue.
|
void |
put(org.openksavi.sponge.event.Event event)
Puts a new event into the event queue.
|
getCapacity, setCapacitydoShutdown, getEngine, getName, getService, getState, isFailed, isNew, isNewOrStartingOrRunning, isRunning, isStarting, isStopping, isTerminated, setEngine, setName, shutdown, startup, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic SynchroEventQueue(String name)
name - queue name.public void doStartup()
doStartup in class BaseEngineModulepublic void put(org.openksavi.sponge.event.Event event)
event - a new event.org.openksavi.sponge.engine.QueueFullException - when the queue is full.public org.openksavi.sponge.event.Event get(long timeout)
throws InterruptedException
InterruptedExceptionpublic int getSize()
public void clear()
Copyright © 2016–2017 Softelnet. All rights reserved.