Top Description Fields Constructors Methods
io.netty5.util.internal.shaded.org.jctools.queues.unpadded

public Class SpscChunkedUnpaddedArrayQueue<E>

extends BaseSpscLinkedUnpaddedArrayQueue<E>
Class Inheritance
Imports
io.netty5.util.internal.shaded.org.jctools.util.Pow2, .RangeUtil, io.netty5.util.internal.shaded.org.jctools.queues.*

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 SpscChunkedArrayQueue.java. An SPSC array queue which starts at initialCapacity and grows to maxCapacity 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.

Field Summary

Modifier and TypeField and Description
private final int
private long

Constructor Summary

AccessConstructor and Description
public
public
SpscChunkedUnpaddedArrayQueue(int chunkSize, int capacity)

Method Summary

Modifier and TypeMethod and Description
public int
pack-priv final boolean
Inherited from io.netty5.util.internal.shaded.org.jctools.queues.unpadded.BaseSpscLinkedUnpaddedArrayQueue:
currentConsumerIndexcurrentProducerIndexdraindraindrainfillfillfillisEmptyiteratorlinkOldToNewlvNextArrayAndUnlinkofferpeekpollrelaxedOfferrelaxedPeekrelaxedPollsizesoNexttoStringwriteToQueue

Field Detail

maxQueueCapacityback to summary
private final int maxQueueCapacity
producerQueueLimitback to summary
private long producerQueueLimit

Constructor Detail

SpscChunkedUnpaddedArrayQueueback to summary
public SpscChunkedUnpaddedArrayQueue(int capacity)
SpscChunkedUnpaddedArrayQueueback to summary
public SpscChunkedUnpaddedArrayQueue(int chunkSize, int capacity)

Method Detail

capacityback to summary
public int capacity()

Implements io.netty5.util.internal.shaded.org.jctools.queues.MessagePassingQueue.capacity, io.netty5.util.internal.shaded.org.jctools.queues.IndexedQueueSizeUtil.IndexedQueue.capacity.

Returns:int

Doc from io.netty5.util.internal.shaded.org.jctools.queues.MessagePassingQueue.capacity.

the capacity of this queue or MessagePassingQueue#UNBOUNDED_CAPACITY if not bounded

Annotations
@Override
offerColdPathback to summary
pack-priv final boolean offerColdPath(E[] buffer, long mask, long pIndex, long offset, E v, MessagePassingQueue.Supplier<? extends E> s)

Implements abstract io.netty5.util.internal.shaded.org.jctools.queues.unpadded.BaseSpscLinkedUnpaddedArrayQueue.offerColdPath.

Annotations
@Override