Class WorkerPool.WaitingSynchronousQueue
- All Implemented Interfaces:
Serializable, Iterable<Runnable>, Collection<Runnable>, BlockingQueue<Runnable>, Queue<Runnable>
- Enclosing class:
WorkerPool
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class SynchronousQueue
clear, contains, containsAll, drainTo, drainTo, isEmpty, iterator, offer, peek, poll, poll, put, remainingCapacity, remove, removeAll, retainAll, size, spliterator, take, toArray, toArray, toStringMethods inherited from class AbstractQueue
add, addAll, element, removeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface BlockingQueue
addMethods inherited from interface Collection
addAll, equals, hashCode, parallelStream, removeIf, stream, toArray
-
Field Details
-
queueTime
volatile long queueTime
-
-
Constructor Details
-
WaitingSynchronousQueue
WaitingSynchronousQueue(long queueTime)
-
-
Method Details
-
setQueueTime
void setQueueTime(long queueTime) -
offer
- Specified by:
offerin interfaceBlockingQueue<Runnable>- Specified by:
offerin interfaceQueue<Runnable>- Overrides:
offerin classSynchronousQueue<Runnable>
-