Package org.jctools.queues.unpadded
Class SpmcUnpaddedArrayQueueProducerIndexCacheField<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
org.jctools.queues.unpadded.ConcurrentCircularUnpaddedArrayQueueL0Pad<E>
org.jctools.queues.unpadded.ConcurrentCircularUnpaddedArrayQueue<E>
org.jctools.queues.unpadded.SpmcUnpaddedArrayQueueL1Pad<E>
org.jctools.queues.unpadded.SpmcUnpaddedArrayQueueProducerIndexField<E>
org.jctools.queues.unpadded.SpmcUnpaddedArrayQueueL2Pad<E>
org.jctools.queues.unpadded.SpmcUnpaddedArrayQueueConsumerIndexField<E>
org.jctools.queues.unpadded.SpmcUnpaddedArrayQueueMidPad<E>
org.jctools.queues.unpadded.SpmcUnpaddedArrayQueueProducerIndexCacheField<E>
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,Queue<E>
,IndexedQueueSizeUtil.IndexedQueue
,MessagePassingQueue<E>
,QueueProgressIndicators
,SupportsIterator
- Direct Known Subclasses:
SpmcUnpaddedArrayQueueL3Pad
abstract class SpmcUnpaddedArrayQueueProducerIndexCacheField<E>
extends SpmcUnpaddedArrayQueueMidPad<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 SpmcArrayQueue.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
FieldsFields inherited from class org.jctools.queues.unpadded.SpmcUnpaddedArrayQueueConsumerIndexField
C_INDEX_OFFSET
Fields inherited from class org.jctools.queues.unpadded.SpmcUnpaddedArrayQueueProducerIndexField
P_INDEX_OFFSET
Fields inherited from class org.jctools.queues.unpadded.ConcurrentCircularUnpaddedArrayQueue
buffer, mask
Fields inherited from interface org.jctools.queues.MessagePassingQueue
UNBOUNDED_CAPACITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final long
protected final void
svProducerIndexCache
(long newValue) Methods inherited from class org.jctools.queues.unpadded.SpmcUnpaddedArrayQueueConsumerIndexField
casConsumerIndex, lvConsumerIndex
Methods inherited from class org.jctools.queues.unpadded.SpmcUnpaddedArrayQueueProducerIndexField
lpProducerIndex, lvProducerIndex, soProducerIndex
Methods inherited from class org.jctools.queues.unpadded.ConcurrentCircularUnpaddedArrayQueue
capacity, clear, currentConsumerIndex, currentProducerIndex, isEmpty, iterator, size, toString
Methods inherited from class java.util.AbstractQueue
add, addAll, element, remove
Methods inherited from class java.util.AbstractCollection
contains, containsAll, remove, removeAll, retainAll, toArray, toArray
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, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
Methods inherited from interface org.jctools.queues.MessagePassingQueue
drain, drain, drain, fill, fill, fill, offer, peek, poll, relaxedOffer, relaxedPeek, relaxedPoll
-
Field Details
-
producerIndexCache
private volatile long producerIndexCache
-
-
Constructor Details
-
SpmcUnpaddedArrayQueueProducerIndexCacheField
SpmcUnpaddedArrayQueueProducerIndexCacheField(int capacity)
-
-
Method Details
-
lvProducerIndexCache
protected final long lvProducerIndexCache() -
svProducerIndexCache
protected final void svProducerIndexCache(long newValue)
-