Note
This class was automatically generated by io.netty5.util.internal.shaded.org.jctools.queues.unpadded.JavaParsingUnpaddedQueueGenerator which can found in the jctools-build module. The original source file is MpscUnboundedArrayQueue.java. An MPSC array queue which starts at initialCapacity and grows indefinitely in linked chunks of the initial size. The queue grows only when the current chunk is full and elements are not copied on resize, instead a link to the new chunk is stored in the old chunk for the consumer to follow.
| Access | Constructor and Description |
|---|---|
| public |
| MpscUnboundedUnpaddedArrayQueue | back to summary |
|---|---|
| public MpscUnboundedUnpaddedArrayQueue(int chunkSize) | |
| availableInQueue | back to summary |
|---|---|
| protected long availableInQueue(long pIndex, long cIndex) Implements abstract io.
| |
| capacity | back to summary |
|---|---|
| public int capacity() Implements abstract io. Implements io.
| |
| drain | back to summary |
|---|---|
| public int drain(MessagePassingQueue. Overrides io. Implements io. Doc from io. Remove all available item from the queue and hand to consume. This should be semantically similar to:
M m;
while((m = relaxedPoll()) != null){
c.accept(m);
}
There's no strong commitment to the queue being empty at the end of a drain. Called from a
consumer thread subject to the restrictions appropriate to the implementation.Warning Explicit assumptions are made with regards to
| |
| fill | back to summary |
|---|---|
| public int fill(MessagePassingQueue. Overrides io. Implements io. Doc from io. Stuff the queue with elements from the supplier. Semantically similar to: while(relaxedOffer(s.get());There's no strong commitment to the queue being full at the end of a fill. Called from a producer thread subject to the restrictions appropriate to the implementation. Unbounded queues will fill up the queue with a fixed amount rather than fill up to oblivion Warning Explicit assumptions are made with regards to
| |
| getCurrentBufferCapacity | back to summary |
|---|---|
| protected long getCurrentBufferCapacity(long mask) Implements abstract io.
| |
| getNextBufferSize | back to summary |
|---|---|
| protected int getNextBufferSize(E[] buffer) Implements abstract io.
| |