Package org.cometd.benchmark
Class MonitoringQueuedThreadPool.MonitoringBlockingArrayQueue
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
org.eclipse.jetty.util.BlockingArrayQueue<Runnable>
org.cometd.benchmark.MonitoringQueuedThreadPool.MonitoringBlockingArrayQueue
- All Implemented Interfaces:
Iterable<Runnable>,Collection<Runnable>,BlockingQueue<Runnable>,List<Runnable>,Queue<Runnable>
- Enclosing class:
- MonitoringQueuedThreadPool
public static class MonitoringQueuedThreadPool.MonitoringBlockingArrayQueue
extends org.eclipse.jetty.util.BlockingArrayQueue<Runnable>
-
Field Summary
Fields inherited from class org.eclipse.jetty.util.BlockingArrayQueue
DEFAULT_CAPACITY, DEFAULT_GROWTHFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.eclipse.jetty.util.BlockingArrayQueue
add, add, drainTo, drainTo, element, get, getCapacity, getMaxCapacity, iterator, listIterator, offer, peek, put, remainingCapacity, remove, remove, remove, set, sizeMethods inherited from class java.util.AbstractList
addAll, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.concurrent.BlockingQueue
containsMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
MonitoringBlockingArrayQueue
public MonitoringBlockingArrayQueue(int capacity, int growBy)
-
-
Method Details
-
reset
public void reset() -
clear
public void clear() -
offer
-
poll
-
poll
- Specified by:
pollin interfaceBlockingQueue<Runnable>- Overrides:
pollin classorg.eclipse.jetty.util.BlockingArrayQueue<Runnable>- Throws:
InterruptedException
-
take
- Specified by:
takein interfaceBlockingQueue<Runnable>- Overrides:
takein classorg.eclipse.jetty.util.BlockingArrayQueue<Runnable>- Throws:
InterruptedException
-