Class MpscAtomicArrayQueueActiveCycleIdField<E>

  • All Implemented Interfaces:
    java.lang.Iterable<E>, java.util.Collection<E>, java.util.Queue<E>
    Direct Known Subclasses:
    MpscRelaxedAtomicArrayQueueMidPad

    abstract class MpscAtomicArrayQueueActiveCycleIdField<E>
    extends MpscAtomicArrayQueueL0Pad<E>
    NOTE: This class was automatically generated by org.jctools.queues.atomic.JavaParsingAtomicArrayQueueGenerator which can found in the jctools-build module. The original source file is MpscArrayQueue.java.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static int activeCycleIndex​(long activeCycleId)  
      boolean casActiveCycleId​(long expected, long value)  
      long lvActiveCycleId()  
      void soActiveCycleId​(long value)  
      • Methods inherited from class java.util.AbstractQueue

        add, addAll, clear, element, remove
      • Methods inherited from class java.util.AbstractCollection

        contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.Queue

        offer, peek, poll
    • Field Detail

      • activeCycleId

        private volatile long activeCycleId
    • Constructor Detail

      • MpscAtomicArrayQueueActiveCycleIdField

        MpscAtomicArrayQueueActiveCycleIdField()
    • Method Detail

      • activeCycleIndex

        public static int activeCycleIndex​(long activeCycleId)
      • lvActiveCycleId

        public final long lvActiveCycleId()
      • soActiveCycleId

        public final void soActiveCycleId​(long value)
      • casActiveCycleId

        public final boolean casActiveCycleId​(long expected,
                                              long value)