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.
|
Event |
get(long timeout)
Always returns
null. |
int |
getCapacity()
Always returns
-1, that means unlimited size. |
int |
getSize() |
void |
put(Event event)
Empty implementation.
|
void |
setCapacity(int capacity)
Empty implementation.
|
doShutdown, doStartup, getDescription, getEngine, getInternalService, getLabel, getName, getState, isFailed, isNew, isNewOrStartingOrRunning, isRunning, isStarting, isStopping, isTerminated, setDescription, setEngine, setLabel, setName, shutdown, startup, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNameisFailed, isNew, isRunning, isStarting, isStopping, isTerminated, shutdown, startupgetDescription, getLabel, setDescription, setLabel, setNamepublic void put(Event event) throws QueueFullException
QueueFullExceptionpublic Event get(long timeout) throws InterruptedException
null.InterruptedExceptionpublic void setCapacity(int capacity)
setCapacity in interface EventQueuesetCapacity in class BaseEventQueuecapacity - the capacity of the queue.public int getCapacity()
-1, that means unlimited size.getCapacity in interface EventQueuegetCapacity in class BaseEventQueuepublic void clear()
public int getSize()
Copyright © 2016–2019 Softelnet. All rights reserved.