Package one.nio.server
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 java.util.concurrent.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 java.util.AbstractQueue
add, addAll, element, removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.concurrent.BlockingQueue
addMethods inherited from interface java.util.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>
-