Class BoundedBlockingQueue<E>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
org.apache.pekko.util.BoundedBlockingQueue<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>, BlockingQueue<E>, Queue<E>
Direct Known Subclasses:
BoundedPriorityMailbox.MessageQueue, BoundedStablePriorityMailbox.MessageQueue

public class BoundedBlockingQueue<E> extends AbstractQueue<E> implements BlockingQueue<E>
BoundedBlockingQueue wraps any Queue and turns the result into a BlockingQueue with a limited capacity. param: maxCapacity - the maximum capacity of this Queue, needs to be &gt; 0 param: backing - the backing Queue