Class RingBufferAdmin

    • Constructor Detail

      • RingBufferAdmin

        protected RingBufferAdmin​(com.lmax.disruptor.RingBuffer<?> ringBuffer,
                                  java.lang.String mbeanName)
    • Method Detail

      • forAsyncLogger

        public static RingBufferAdmin forAsyncLogger​(com.lmax.disruptor.RingBuffer<?> ringBuffer,
                                                     java.lang.String contextName)
      • forAsyncLoggerConfig

        public static RingBufferAdmin forAsyncLoggerConfig​(com.lmax.disruptor.RingBuffer<?> ringBuffer,
                                                           java.lang.String contextName,
                                                           java.lang.String configName)
      • getBufferSize

        public long getBufferSize()
        Description copied from interface: RingBufferAdminMBean
        Returns the number of slots that the ring buffer was configured with. Disruptor ring buffers are bounded-size data structures, this number does not change during the life of the ring buffer.
        Specified by:
        getBufferSize in interface RingBufferAdminMBean
        Returns:
        the number of slots that the ring buffer was configured with
      • getRemainingCapacity

        public long getRemainingCapacity()
        Description copied from interface: RingBufferAdminMBean
        Returns the number of available slots in the ring buffer. May vary wildly between invocations.
        Specified by:
        getRemainingCapacity in interface RingBufferAdminMBean
        Returns:
        the number of available slots in the ring buffer