Class MpmcConcurrentQueueSMBuffer<E>

    • Field Detail

      • SPARSE_SHIFT

        private static final int SPARSE_SHIFT
      • REF_ARRAY_BASE

        private static final long REF_ARRAY_BASE
      • REF_ELEMENT_SHIFT

        private static final int REF_ELEMENT_SHIFT
      • SIZE_OF_ELEMENT

        protected static final int SIZE_OF_ELEMENT
      • capacity

        protected final int capacity
      • mask

        protected final long mask
      • buffer

        protected final E[] buffer
    • Constructor Detail

      • MpmcConcurrentQueueSMBuffer

        public MpmcConcurrentQueueSMBuffer​(int capacity)
    • Method Detail

      • calcOffset

        protected final long calcOffset​(long index)
      • spElement

        protected final void spElement​(E[] buffer,
                                       long offset,
                                       E e)
      • soElement

        protected final void soElement​(E[] buffer,
                                       long offset,
                                       java.lang.Object e)
      • svElement

        protected final void svElement​(E[] buffer,
                                       long offset,
                                       java.lang.Object e)
      • lvElement

        protected final java.lang.Object lvElement​(E[] buffer,
                                                   long offset)