Class MpscBlockingConsumerVarHandleUnpaddedArrayQueueConsumerFields<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractQueue<E>
-
- org.jctools.queues.varhandle.unpadded.MpscBlockingConsumerVarHandleUnpaddedArrayQueuePad1<E>
-
- org.jctools.queues.varhandle.unpadded.MpscBlockingConsumerVarHandleUnpaddedArrayQueueColdProducerFields<E>
-
- org.jctools.queues.varhandle.unpadded.MpscBlockingConsumerVarHandleUnpaddedArrayQueuePad2<E>
-
- org.jctools.queues.varhandle.unpadded.MpscBlockingConsumerVarHandleUnpaddedArrayQueueProducerFields<E>
-
- org.jctools.queues.varhandle.unpadded.MpscBlockingConsumerVarHandleUnpaddedArrayQueuePad3<E>
-
- org.jctools.queues.varhandle.unpadded.MpscBlockingConsumerVarHandleUnpaddedArrayQueueConsumerFields<E>
-
- All Implemented Interfaces:
java.lang.Iterable<E>,java.util.Collection<E>,java.util.Queue<E>,IndexedQueueSizeUtil.IndexedQueue
- Direct Known Subclasses:
MpscBlockingConsumerVarHandleUnpaddedArrayQueue
abstract class MpscBlockingConsumerVarHandleUnpaddedArrayQueueConsumerFields<E> extends MpscBlockingConsumerVarHandleUnpaddedArrayQueuePad3<E>
NOTE: This class was automatically generated by org.jctools.queues.varhandle.unpadded.JavaParsingVarHandleUnpaddedArrayQueueGenerator which can found in the jctools-build module. The original source file is MpscBlockingConsumerArrayQueue.java.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Threadblockedprotected E[]consumerBufferprivate longconsumerIndexprotected longconsumerMaskprivate static java.lang.invoke.VarHandleVH_BLOCKEDprivate static java.lang.invoke.VarHandleVH_CONSUMER_INDEX-
Fields inherited from class org.jctools.queues.varhandle.unpadded.MpscBlockingConsumerVarHandleUnpaddedArrayQueueColdProducerFields
producerBuffer, producerMask
-
-
Constructor Summary
Constructors Constructor Description MpscBlockingConsumerVarHandleUnpaddedArrayQueueConsumerFields(long mask, E[] buffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) longlpConsumerIndex()(package private) java.lang.ThreadlvBlocked()longlvConsumerIndex()(package private) voidsoBlocked(java.lang.Thread thread)This field should only be written to from the consumer thread.(package private) voidsoConsumerIndex(long newValue)-
Methods inherited from class org.jctools.queues.varhandle.unpadded.MpscBlockingConsumerVarHandleUnpaddedArrayQueueProducerFields
casProducerIndex, lvProducerIndex, soProducerIndex
-
Methods inherited from class org.jctools.queues.varhandle.unpadded.MpscBlockingConsumerVarHandleUnpaddedArrayQueueColdProducerFields
casProducerLimit, lvProducerLimit, soProducerLimit
-
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 org.jctools.queues.IndexedQueueSizeUtil.IndexedQueue
capacity
-
-
-
-
Field Detail
-
VH_BLOCKED
private static final java.lang.invoke.VarHandle VH_BLOCKED
-
VH_CONSUMER_INDEX
private static final java.lang.invoke.VarHandle VH_CONSUMER_INDEX
-
consumerIndex
private long consumerIndex
-
consumerMask
protected final long consumerMask
-
blocked
private volatile java.lang.Thread blocked
-
consumerBuffer
protected final E[] consumerBuffer
-
-
Constructor Detail
-
MpscBlockingConsumerVarHandleUnpaddedArrayQueueConsumerFields
MpscBlockingConsumerVarHandleUnpaddedArrayQueueConsumerFields(long mask, E[] buffer)
-
-
Method Detail
-
lvConsumerIndex
public final long lvConsumerIndex()
-
lpConsumerIndex
final long lpConsumerIndex()
-
soConsumerIndex
final void soConsumerIndex(long newValue)
-
lvBlocked
final java.lang.Thread lvBlocked()
-
soBlocked
final void soBlocked(java.lang.Thread thread)
This field should only be written to from the consumer thread. It is set before parking the consumer and nulled when the consumer is unblocked. The value is read by producer thread to unpark the consumer.- Parameters:
thread- the consumer thread which is blocked waiting for the producers
-
-