Class GrowableMpScArrayConsumerBlockingQueue<T>

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

public class GrowableMpScArrayConsumerBlockingQueue<T> extends AbstractQueue<T> implements BlockingQueue<T>
This implements a BlockingQueue backed by an array with no fixed capacity.

When the capacity is reached, data will be moved to a bigger array.

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