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, toString
Methods inherited from class java.util.AbstractQueue
element, remove
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
offer
in interfaceBlockingQueue<E>
- Overrides:
offer
in classLinkedBlockingQueue<E>
- Throws:
InterruptedException
-
offer
- Specified by:
offer
in interfaceBlockingQueue<E>
- Specified by:
offer
in interfaceQueue<E>
- Overrides:
offer
in classLinkedBlockingQueue<E>
-
put
- Specified by:
put
in interfaceBlockingQueue<E>
- Overrides:
put
in classLinkedBlockingQueue<E>
- Throws:
InterruptedException
-
add
- Specified by:
add
in interfaceBlockingQueue<E>
- Specified by:
add
in interfaceCollection<E>
- Specified by:
add
in interfaceQueue<E>
- Overrides:
add
in classAbstractQueue<E>
-
addAll
- Specified by:
addAll
in interfaceCollection<E>
- Overrides:
addAll
in classAbstractQueue<E>
-