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 int
BUFFER_PAD
protected int
bufferSize
private java.lang.Object[]
entries
private long
indexMask
private static long
REF_ARRAY_BASE
private static int
REF_ELEMENT_SHIFT
protected Sequencer
sequencer
private static sun.misc.Unsafe
UNSAFE
-
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 E
elementAt(long sequence)
private void
fill(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)
-
-