public class NullEventQueue extends BaseEventQueue
capacity| Constructor and Description |
|---|
NullEventQueue()
Creates a new null event queue.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears this event queue.
|
org.openksavi.sponge.event.Event |
get(long timeout)
Always returns
null. |
int |
getCapacity()
Always returns
-1, that means unlimited size. |
int |
getSize() |
void |
put(org.openksavi.sponge.event.Event event)
Empty implementation.
|
void |
setCapacity(int capacity)
Empty implementation.
|
doShutdown, doStartup, 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 void put(org.openksavi.sponge.event.Event event)
throws org.openksavi.sponge.engine.QueueFullException
org.openksavi.sponge.engine.QueueFullExceptionpublic org.openksavi.sponge.event.Event get(long timeout)
throws InterruptedException
null.InterruptedExceptionpublic void setCapacity(int capacity)
setCapacity in interface org.openksavi.sponge.engine.event.EventQueuesetCapacity in class BaseEventQueuecapacity - the capacity of the queue.public int getCapacity()
-1, that means unlimited size.getCapacity in interface org.openksavi.sponge.engine.event.EventQueuegetCapacity in class BaseEventQueuepublic void clear()
public int getSize()
Copyright © 2016–2017 Softelnet. All rights reserved.