Uses of Class
org.jctools.queues.MpscUnboundedXaddChunk
Packages that use MpscUnboundedXaddChunk
Package
Description
This package aims to fill a gap in current JDK implementations in offering lock free (wait free where possible)
queues for inter-thread message passing with finer grained guarantees and an emphasis on performance.
At the time of writing the only lock free queue available in the JDK is
At the time of writing the only lock free queue available in the JDK is
ConcurrentLinkedQueue which is an unbounded multi-producer, multi-consumer queue which
is further encumbered by the need to implement the full range of Queue methods.-
Uses of MpscUnboundedXaddChunk in org.jctools.queues
Subclasses with type arguments of type MpscUnboundedXaddChunk in org.jctools.queuesModifier and TypeClassDescriptionclassAn MPSC array queue which grows unbounded in linked chunks.
Differently fromMpscUnboundedArrayQueueit is designed to provide a better scaling when more producers are concurrently offering.
Users should be aware thatMpscUnboundedXaddArrayQueue.poll()could spin while awaiting a new element to be available: to avoid this behaviourMpscUnboundedXaddArrayQueue.relaxedPoll()should be used instead, accounting for the semantic differences between the twos.final classMethods in org.jctools.queues that return MpscUnboundedXaddChunkModifier and TypeMethodDescription(package private) final MpscUnboundedXaddChunk<E> MpscUnboundedXaddArrayQueue.newChunk(long index, MpscUnboundedXaddChunk<E> prev, int chunkSize, boolean pooled) private MpscUnboundedXaddChunk<E> MpscUnboundedXaddArrayQueue.pollNextBuffer(MpscUnboundedXaddChunk<E> cChunk, long cIndex) private MpscUnboundedXaddChunk<E> MpscUnboundedXaddArrayQueue.spinForNextIfNotEmpty(MpscUnboundedXaddChunk<E> cChunk, long cIndex) Methods in org.jctools.queues with parameters of type MpscUnboundedXaddChunkModifier and TypeMethodDescription(package private) final MpscUnboundedXaddChunk<E> MpscUnboundedXaddArrayQueue.newChunk(long index, MpscUnboundedXaddChunk<E> prev, int chunkSize, boolean pooled) private MpscUnboundedXaddChunk<E> MpscUnboundedXaddArrayQueue.pollNextBuffer(MpscUnboundedXaddChunk<E> cChunk, long cIndex) private MpscUnboundedXaddChunk<E> MpscUnboundedXaddArrayQueue.spinForNextIfNotEmpty(MpscUnboundedXaddChunk<E> cChunk, long cIndex) Constructors in org.jctools.queues with parameters of type MpscUnboundedXaddChunkModifierConstructorDescriptionMpscUnboundedXaddChunk(long index, MpscUnboundedXaddChunk<E> prev, int size, boolean pooled)