E
- the element t.ypepublic class TrackingLinkedBlockingQueue<E> extends LinkedBlockingQueue<E>
LinkedBlockingQueue
that tracks the largest queue size for debugging.Constructor and Description |
---|
TrackingLinkedBlockingQueue() |
TrackingLinkedBlockingQueue(Collection<? extends E> c) |
TrackingLinkedBlockingQueue(int capacity) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
boolean |
addAll(Collection<? extends E> c) |
long |
getLargestQueueSize()
Returns the largest queue size.
|
boolean |
offer(E e) |
boolean |
offer(E e,
long timeout,
TimeUnit unit) |
void |
put(E e) |
clear, contains, drainTo, drainTo, iterator, peek, poll, poll, remainingCapacity, remove, size, spliterator, take, toArray, toArray, toString
element, remove
containsAll, isEmpty, removeAll, retainAll
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, stream
public TrackingLinkedBlockingQueue()
public TrackingLinkedBlockingQueue(Collection<? extends E> c)
public TrackingLinkedBlockingQueue(int capacity)
@Beta public long getLargestQueueSize()
FIXME: the this return will be changed to int in a future release.
public boolean offer(E e, long timeout, TimeUnit unit) throws InterruptedException
offer
in interface BlockingQueue<E>
offer
in class LinkedBlockingQueue<E>
InterruptedException
public boolean offer(@Nonnull E e)
offer
in interface BlockingQueue<E>
offer
in interface Queue<E>
offer
in class LinkedBlockingQueue<E>
public void put(E e) throws InterruptedException
put
in interface BlockingQueue<E>
put
in class LinkedBlockingQueue<E>
InterruptedException
public boolean add(E e)
add
in interface Collection<E>
add
in interface BlockingQueue<E>
add
in interface Queue<E>
add
in class AbstractQueue<E>
public boolean addAll(Collection<? extends E> c)
addAll
in interface Collection<E>
addAll
in class AbstractQueue<E>
Copyright © 2018 OpenDaylight. All rights reserved.