Class MpscChunkedUnpaddedArrayQueue<E>

All Implemented Interfaces:
Iterable<E>, Collection<E>, Queue<E>, IndexedQueueSizeUtil.IndexedQueue, MessagePassingQueue<E>, QueueProgressIndicators
Direct Known Subclasses:
MpscGrowableUnpaddedArrayQueue

public class MpscChunkedUnpaddedArrayQueue<E> extends MpscChunkedUnpaddedArrayQueueColdProducerFields<E>
NOTE: This class was automatically generated by org.jctools.queues.unpadded.JavaParsingUnpaddedQueueGenerator which can found in the jctools-build module. The original source file is MpscChunkedArrayQueue.java. An MPSC 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.
  • Constructor Details

    • MpscChunkedUnpaddedArrayQueue

      public MpscChunkedUnpaddedArrayQueue(int maxCapacity)
    • MpscChunkedUnpaddedArrayQueue

      public MpscChunkedUnpaddedArrayQueue(int initialCapacity, int maxCapacity)
      Parameters:
      initialCapacity - the queue initial capacity. If chunk size is fixed this will be the chunk size. Must be 2 or more.
      maxCapacity - the maximum capacity will be rounded up to the closest power of 2 and will be the upper limit of number of elements in this queue. Must be 4 or more and round up to a larger power of 2 than initialCapacity.
  • Method Details