org.opennms.bb.dp.eventd
Class EventPersistd.CheckQueue

java.lang.Object
  |
  +--org.opennms.bb.common.components.PCQueueLinkedList
        |
        +--org.opennms.bb.dp.eventd.EventPersistd.CheckQueue
All Implemented Interfaces:
PCQueue
Enclosing class:
EventPersistd

private class EventPersistd.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

Fields inherited from class org.opennms.bb.common.components.PCQueueLinkedList
m_elements, m_isOpen, m_maxSize, m_oneShotNotifyOnAdd, m_oneShotNotifyOnRead
 
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