Class BatchedArrayBlockingQueue<T>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<T>
org.apache.bookkeeper.common.collections.BatchedArrayBlockingQueue<T>
All Implemented Interfaces:
Iterable<T>, Collection<T>, BlockingQueue<T>, Queue<T>, BatchedBlockingQueue<T>

public class BatchedArrayBlockingQueue<T> extends AbstractQueue<T> implements BlockingQueue<T>, BatchedBlockingQueue<T>
This implements a BlockingQueue backed by an array with fixed capacity.

This queue only allows 1 consumer thread to dequeue items and multiple producer threads.