Package com.suse.common.concurrent
Class UnboundedGrowingThreadPoolExecutor.TransferOnOfferBlockingQueue
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
java.util.concurrent.LinkedTransferQueue<Runnable>
com.suse.common.concurrent.UnboundedGrowingThreadPoolExecutor.TransferOnOfferBlockingQueue
- All Implemented Interfaces:
Serializable,Iterable<Runnable>,Collection<Runnable>,BlockingQueue<Runnable>,TransferQueue<Runnable>,Queue<Runnable>
- Enclosing class:
- UnboundedGrowingThreadPoolExecutor
private static class UnboundedGrowingThreadPoolExecutor.TransferOnOfferBlockingQueue
extends LinkedTransferQueue<Runnable>
A blocking queue implementation that always tries to transfer the items offered
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.concurrent.LinkedTransferQueue
add, clear, contains, drainTo, drainTo, forEach, getWaitingConsumerCount, hasWaitingConsumer, isEmpty, iterator, offer, peek, poll, poll, put, remainingCapacity, remove, removeAll, removeIf, retainAll, size, spliterator, take, toArray, toArray, toString, transfer, tryTransfer, tryTransferMethods inherited from class java.util.AbstractQueue
addAll, element, removeMethods inherited from class java.util.AbstractCollection
containsAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
addAll, containsAll, equals, hashCode, parallelStream, stream, toArray
-
Constructor Details
-
TransferOnOfferBlockingQueue
private TransferOnOfferBlockingQueue()
-
-
Method Details
-
offer
- Specified by:
offerin interfaceBlockingQueue<Runnable>- Specified by:
offerin interfaceQueue<Runnable>- Overrides:
offerin classLinkedTransferQueue<Runnable>
-