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
-
Constructor Summary
Constructors Constructor Description MonitoringBlockingArrayQueue(int capacity, int growBy)
-
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.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:
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
-