E - public class MpscUnboundedArrayQueue<E> extends BaseMpscLinkedArrayQueue<E>
MessagePassingQueue.Consumer<T>, MessagePassingQueue.ExitCondition, MessagePassingQueue.Supplier<T>, MessagePassingQueue.WaitStrategy| Modifier and Type | Field and Description |
|---|---|
protected E[] |
consumerBuffer |
protected long |
consumerMask |
protected E[] |
producerBuffer |
protected long |
producerMask |
UNBOUNDED_CAPACITY| Constructor and Description |
|---|
MpscUnboundedArrayQueue(int chunkSize) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
availableInQueue(long pIndex,
long cIndex) |
int |
capacity() |
int |
drain(MessagePassingQueue.Consumer<E> c) |
int |
fill(MessagePassingQueue.Supplier<E> s) |
protected long |
getCurrentBufferCapacity(long mask) |
protected int |
getNextBufferSize(E[] buffer) |
long |
lvConsumerIndex() |
long |
lvProducerIndex() |
currentConsumerIndex, currentProducerIndex, drain, drain, fill, fill, isEmpty, iterator, offer, peek, poll, relaxedOffer, relaxedPeek, relaxedPoll, size, toStringcontains, containsAll, remove, removeAll, retainAll, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclearcontains, containsAll, equals, hashCode, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArrayprotected long producerMask
protected E[] producerBuffer
protected long consumerMask
protected E[] consumerBuffer
protected long availableInQueue(long pIndex,
long cIndex)
availableInQueue in class BaseMpscLinkedArrayQueue<E>public int capacity()
capacity in interface MessagePassingQueue<E>capacity in class BaseMpscLinkedArrayQueue<E>public int drain(MessagePassingQueue.Consumer<E> c)
drain in interface MessagePassingQueue<E>drain in class BaseMpscLinkedArrayQueue<E>public int fill(MessagePassingQueue.Supplier<E> s)
fill in interface MessagePassingQueue<E>fill in class BaseMpscLinkedArrayQueue<E>protected int getNextBufferSize(E[] buffer)
getNextBufferSize in class BaseMpscLinkedArrayQueue<E>protected long getCurrentBufferCapacity(long mask)
getCurrentBufferCapacity in class BaseMpscLinkedArrayQueue<E>public final long lvConsumerIndex()
public final long lvProducerIndex()