abstract class RingBufferFields<E> extends RingBufferPad
Modifier and Type | Field and 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 and Description |
---|
RingBufferFields(EventFactory<E> eventFactory,
Sequencer sequencer) |
Modifier and Type | Method and Description |
---|---|
protected E |
elementAt(long sequence) |
private void |
fill(EventFactory<E> eventFactory) |
private static final int BUFFER_PAD
private static final long REF_ARRAY_BASE
private static final int REF_ELEMENT_SHIFT
private static final sun.misc.Unsafe UNSAFE
private final long indexMask
private final java.lang.Object[] entries
protected final int bufferSize
protected final Sequencer sequencer
RingBufferFields(EventFactory<E> eventFactory, Sequencer sequencer)
private void fill(EventFactory<E> eventFactory)
protected final E elementAt(long sequence)