Class UnboundedGrowingThreadPoolExecutor.TransferOnOfferBlockingQueue

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<java.lang.Runnable>, java.util.Collection<java.lang.Runnable>, java.util.concurrent.BlockingQueue<java.lang.Runnable>, java.util.concurrent.TransferQueue<java.lang.Runnable>, java.util.Queue<java.lang.Runnable>
    Enclosing class:
    UnboundedGrowingThreadPoolExecutor

    private static class UnboundedGrowingThreadPoolExecutor.TransferOnOfferBlockingQueue
    extends java.util.concurrent.LinkedTransferQueue<java.lang.Runnable>
    A blocking queue implementation that always tries to transfer the items offered
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean offer​(java.lang.Runnable runnable)  
      • 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, tryTransfer
      • Methods inherited from class java.util.AbstractQueue

        addAll, element, remove
      • Methods inherited from class java.util.AbstractCollection

        containsAll
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        addAll, containsAll, equals, hashCode, parallelStream, stream, toArray
      • Methods inherited from interface java.util.Queue

        element, remove
    • Constructor Detail

      • TransferOnOfferBlockingQueue

        private TransferOnOfferBlockingQueue()
    • Method Detail

      • offer

        public boolean offer​(java.lang.Runnable runnable)
        Specified by:
        offer in interface java.util.concurrent.BlockingQueue<java.lang.Runnable>
        Specified by:
        offer in interface java.util.Queue<java.lang.Runnable>
        Overrides:
        offer in class java.util.concurrent.LinkedTransferQueue<java.lang.Runnable>