Package org.apache.druid.collections
Class QueueNonBlockingPool<T>
java.lang.Object
org.apache.druid.collections.QueueNonBlockingPool<T>
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
QueueNonBlockingPool
-
-
Method Details
-
take
- Specified by:
takein interfaceNonBlockingPool<T>
-
availableCount
public int availableCount()Number of available items.
-