Class QueueNonBlockingPool<T>

java.lang.Object
org.apache.druid.collections.QueueNonBlockingPool<T>
All Implemented Interfaces:
NonBlockingPool<T>

public class QueueNonBlockingPool<T> extends Object implements NonBlockingPool<T>
Implementation of NonBlockingPool based on a pre-created BlockingQueue that never actually blocks. If the pool is empty when take() is called, it throws NoSuchElementException.
  • Constructor Details

    • QueueNonBlockingPool

      public QueueNonBlockingPool(BlockingQueue<T> queue)
  • Method Details