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(@NonNull 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, toStringelement, removecontainsAll, isEmpty, removeAll, retainAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, streampublic TrackingLinkedBlockingQueue()
public TrackingLinkedBlockingQueue(@NonNull 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>InterruptedExceptionpublic boolean offer(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>InterruptedExceptionpublic 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 © 2019 OpenDaylight. All rights reserved.