Class TrackingLinkedBlockingQueue<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
java.util.concurrent.LinkedBlockingQueue<E>
org.opendaylight.yangtools.util.concurrent.TrackingLinkedBlockingQueue<E>
- Type Parameters:
E- the element t.ype
- All Implemented Interfaces:
Serializable,Iterable<E>,Collection<E>,BlockingQueue<E>,Queue<E>
A
LinkedBlockingQueue that tracks the largest queue size for debugging.- Author:
- Thomas Pantelis
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTrackingLinkedBlockingQueue(int capacity) TrackingLinkedBlockingQueue(@NonNull Collection<? extends E> c) -
Method Summary
Methods inherited from class java.util.concurrent.LinkedBlockingQueue
clear, contains, drainTo, drainTo, forEach, iterator, peek, poll, poll, remainingCapacity, remove, removeAll, removeIf, retainAll, size, spliterator, take, toArray, toArray, toStringMethods inherited from class java.util.AbstractQueue
element, removeMethods inherited from class java.util.AbstractCollection
containsAll, isEmptyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
containsAll, equals, hashCode, isEmpty, parallelStream, stream, toArray
-
Constructor Details
-
TrackingLinkedBlockingQueue
public TrackingLinkedBlockingQueue() -
TrackingLinkedBlockingQueue
-
TrackingLinkedBlockingQueue
public TrackingLinkedBlockingQueue(int capacity)
-
-
Method Details
-
getLargestQueueSize
Returns the largest queue size. -
offer
- Specified by:
offerin interfaceBlockingQueue<E>- Overrides:
offerin classLinkedBlockingQueue<E>- Throws:
InterruptedException
-
offer
- Specified by:
offerin interfaceBlockingQueue<E>- Specified by:
offerin interfaceQueue<E>- Overrides:
offerin classLinkedBlockingQueue<E>
-
put
- Specified by:
putin interfaceBlockingQueue<E>- Overrides:
putin classLinkedBlockingQueue<E>- Throws:
InterruptedException
-
add
- Specified by:
addin interfaceBlockingQueue<E>- Specified by:
addin interfaceCollection<E>- Specified by:
addin interfaceQueue<E>- Overrides:
addin classAbstractQueue<E>
-
addAll
- Specified by:
addAllin interfaceCollection<E>- Overrides:
addAllin classAbstractQueue<E>
-