Class SpmcArrayQueueConsumerIndexField<E>

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

abstract class SpmcArrayQueueConsumerIndexField<E> extends SpmcArrayQueueL2Pad<E>
  • Field Details

    • C_INDEX_OFFSET

      protected static final long C_INDEX_OFFSET
    • consumerIndex

      private volatile long consumerIndex
  • Constructor Details

    • SpmcArrayQueueConsumerIndexField

      SpmcArrayQueueConsumerIndexField(int capacity)
  • Method Details

    • lvConsumerIndex

      public final long lvConsumerIndex()
    • casConsumerIndex

      final boolean casConsumerIndex(long expect, long newValue)