Package org.cometd.benchmark
Class MonitoringQueuedThreadPool.MonitoringBlockingArrayQueue
java.lang.Object
java.util.AbstractCollection<Runnable>
java.util.AbstractList<Runnable>
org.eclipse.jetty.util.BlockingArrayQueue<Runnable>
org.cometd.benchmark.MonitoringQueuedThreadPool.MonitoringBlockingArrayQueue
- All Implemented Interfaces:
Iterable<Runnable>
,Collection<Runnable>
,BlockingQueue<Runnable>
,List<Runnable>
,Queue<Runnable>
,SequencedCollection<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_GROWTH
Fields 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, size
Methods inherited from class java.util.AbstractList
addAll, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subList
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.concurrent.BlockingQueue
contains
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, isEmpty, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, 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:
poll
in interfaceBlockingQueue<Runnable>
- Overrides:
poll
in classorg.eclipse.jetty.util.BlockingArrayQueue<Runnable>
- Throws:
InterruptedException
-
take
- Specified by:
take
in interfaceBlockingQueue<Runnable>
- Overrides:
take
in classorg.eclipse.jetty.util.BlockingArrayQueue<Runnable>
- Throws:
InterruptedException
-