Package com.lmax.disruptor
Class RingBufferFields<E>
- java.lang.Object
-
- com.lmax.disruptor.RingBufferPad
-
- com.lmax.disruptor.RingBufferFields<E>
-
- Direct Known Subclasses:
RingBuffer
abstract class RingBufferFields<E> extends RingBufferPad
-
-
Field Summary
Fields Modifier and Type Field Description private static intBUFFER_PADprotected intbufferSizeprivate java.lang.Object[]entriesprivate longindexMaskprivate static longREF_ARRAY_BASEprivate static intREF_ELEMENT_SHIFTprotected Sequencersequencerprivate static sun.misc.UnsafeUNSAFE
-
Constructor Summary
Constructors Constructor Description RingBufferFields(EventFactory<E> eventFactory, Sequencer sequencer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EelementAt(long sequence)private voidfill(EventFactory<E> eventFactory)
-
-
-
Field Detail
-
BUFFER_PAD
private static final int BUFFER_PAD
-
REF_ARRAY_BASE
private static final long REF_ARRAY_BASE
-
REF_ELEMENT_SHIFT
private static final int REF_ELEMENT_SHIFT
-
UNSAFE
private static final sun.misc.Unsafe UNSAFE
-
indexMask
private final long indexMask
-
entries
private final java.lang.Object[] entries
-
bufferSize
protected final int bufferSize
-
sequencer
protected final Sequencer sequencer
-
-
Constructor Detail
-
RingBufferFields
RingBufferFields(EventFactory<E> eventFactory, Sequencer sequencer)
-
-
Method Detail
-
fill
private void fill(EventFactory<E> eventFactory)
-
elementAt
protected final E elementAt(long sequence)
-
-