org.opennms.bb.dp.eventd
Class EventListener.CheckQueue
java.lang.Object
|
+--org.opennms.bb.common.components.PCQueueLinkedList
|
+--org.opennms.bb.dp.eventd.EventListener.CheckQueue
- All Implemented Interfaces:
- PCQueue
- Enclosing class:
- EventListener
- private class EventListener.CheckQueue
- extends PCQueueLinkedList
This class is designed to specifically override the add
behaviour of the base class. In order to ensure that the
event daemon does not get two far behind a check is performed
on each addition so ensure that there are always at least
N/2 threads, where N is the size of the queue.
The number of threads are bounded by a maximum that may
be allocated by the enclosing class. For more information
see the thread vs. queue size check routine.
- Author:
- Brian Weaver, OpenNMS
- See Also:
#threadVsQueueSizeCheck
Methods inherited from class org.opennms.bb.common.components.PCQueueLinkedList |
clear, close, entries, isClosed, isEmpty, isFull, isOpen, oneShotNotifyAllOnAdd, oneShotNotifyAllOnRead, open, read, size |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |