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 SpscUnboundedArrayQueue.java.
An SPSC 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 |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | fill(MessagePassingQueue.
Overrides io. Implements io. |
| pack-priv final boolean | offerColdPath(E[] buffer, long mask, long pIndex, long offset, E v, MessagePassingQueue.
Implements abstract io. |
| SpscUnboundedUnpaddedArrayQueue | back to summary |
|---|---|
| public SpscUnboundedUnpaddedArrayQueue(int chunkSize) | |
| capacity | back to summary |
|---|---|
| public int capacity() Implements io.
| |
| 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
| |
| offerColdPath | back to summary |
|---|---|
| pack-priv final boolean offerColdPath(E[] buffer, long mask, long pIndex, long offset, E v, MessagePassingQueue. Implements abstract io.
| |