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.
|
Event |
get(long timeout)
Returns the first event from the queue.
|
int |
getSize()
Returns the current size of the queue.
|
void |
put(Event event)
Puts a new event into the event queue.
|
getCapacity, setCapacitydoShutdown, getDescription, getDisplayName, getEngine, getInternalService, getName, getState, isFailed, isNew, isNewOrStartingOrRunning, isRunning, isStarting, isStopping, isTerminated, setDescription, setDisplayName, setEngine, setName, shutdown, startup, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNameisFailed, isNew, isRunning, isStarting, isStopping, isTerminated, shutdown, startupgetDescription, getDisplayName, setDescription, setDisplayName, setNamepublic SynchroEventQueue(String name)
name - queue name.public void doStartup()
doStartup in class BaseEngineModulepublic void put(Event event)
event - a new event.QueueFullException - when the queue is full.public Event get(long timeout) throws InterruptedException
InterruptedExceptionpublic int getSize()
public void clear()
Copyright © 2016–2018 Softelnet. All rights reserved.