Class MpscAtomicUnpaddedArrayQueueProducerIndexField<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
org.jctools.queues.atomic.unpadded.ConcurrentCircularAtomicUnpaddedArrayQueueL0Pad<E>
org.jctools.queues.atomic.unpadded.ConcurrentCircularAtomicUnpaddedArrayQueue<E>
org.jctools.queues.atomic.unpadded.MpscAtomicUnpaddedArrayQueueL1Pad<E>
org.jctools.queues.atomic.unpadded.MpscAtomicUnpaddedArrayQueueProducerIndexField<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Queue<E>,IndexedQueueSizeUtil.IndexedQueue,MessagePassingQueue<E>,QueueProgressIndicators,SupportsIterator
- Direct Known Subclasses:
MpscAtomicUnpaddedArrayQueueMidPad
abstract class MpscAtomicUnpaddedArrayQueueProducerIndexField<E>
extends MpscAtomicUnpaddedArrayQueueL1Pad<E>
NOTE: This class was automatically generated by org.jctools.queues.atomic.unpadded.JavaParsingAtomicUnpaddedArrayQueueGenerator
which can found in the jctools-build module. The original source file is MpscArrayQueue.java.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jctools.queues.MessagePassingQueue
MessagePassingQueue.Consumer<T>, MessagePassingQueue.ExitCondition, MessagePassingQueue.Supplier<T>, MessagePassingQueue.WaitStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final AtomicLongFieldUpdater<MpscAtomicUnpaddedArrayQueueProducerIndexField> private longFields inherited from class org.jctools.queues.atomic.unpadded.ConcurrentCircularAtomicUnpaddedArrayQueue
buffer, maskFields inherited from interface org.jctools.queues.MessagePassingQueue
UNBOUNDED_CAPACITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) final booleancasProducerIndex(long expect, long newValue) final longMethods inherited from class org.jctools.queues.atomic.unpadded.ConcurrentCircularAtomicUnpaddedArrayQueue
capacity, clear, currentConsumerIndex, currentProducerIndex, isEmpty, iterator, size, toStringMethods inherited from class java.util.AbstractQueue
add, addAll, element, removeMethods inherited from class java.util.AbstractCollection
contains, containsAll, remove, removeAll, retainAll, toArray, toArrayMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
contains, containsAll, equals, hashCode, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArrayMethods inherited from interface org.jctools.queues.IndexedQueueSizeUtil.IndexedQueue
lvConsumerIndexMethods inherited from interface org.jctools.queues.MessagePassingQueue
drain, drain, drain, fill, fill, fill, offer, peek, poll, relaxedOffer, relaxedPeek, relaxedPoll
-
Field Details
-
P_INDEX_UPDATER
private static final AtomicLongFieldUpdater<MpscAtomicUnpaddedArrayQueueProducerIndexField> P_INDEX_UPDATER -
producerIndex
private volatile long producerIndex
-
-
Constructor Details
-
MpscAtomicUnpaddedArrayQueueProducerIndexField
MpscAtomicUnpaddedArrayQueueProducerIndexField(int capacity)
-
-
Method Details
-
lvProducerIndex
public final long lvProducerIndex() -
casProducerIndex
final boolean casProducerIndex(long expect, long newValue)
-