public class RingBufferAdmin extends Object implements RingBufferAdminMBean
PATTERN_ASYNC_LOGGER, PATTERN_ASYNC_LOGGER_CONFIG| Modifier | Constructor and Description |
|---|---|
protected |
RingBufferAdmin(com.lmax.disruptor.RingBuffer<?> ringBuffer,
String mbeanName) |
| Modifier and Type | Method and Description |
|---|---|
static RingBufferAdmin |
forAsyncLogger(com.lmax.disruptor.RingBuffer<?> ringBuffer,
String contextName) |
static RingBufferAdmin |
forAsyncLoggerConfig(com.lmax.disruptor.RingBuffer<?> ringBuffer,
String contextName,
String configName) |
long |
getBufferSize()
Returns the number of slots that the ring buffer was configured with.
|
ObjectName |
getObjectName()
Returns the
ObjectName of this mbean. |
long |
getRemainingCapacity()
Returns the number of available slots in the ring buffer.
|
protected RingBufferAdmin(com.lmax.disruptor.RingBuffer<?> ringBuffer,
String mbeanName)
public static RingBufferAdmin forAsyncLogger(com.lmax.disruptor.RingBuffer<?> ringBuffer, String contextName)
public static RingBufferAdmin forAsyncLoggerConfig(com.lmax.disruptor.RingBuffer<?> ringBuffer, String contextName, String configName)
public long getBufferSize()
RingBufferAdminMBeangetBufferSize in interface RingBufferAdminMBeanpublic long getRemainingCapacity()
RingBufferAdminMBeangetRemainingCapacity in interface RingBufferAdminMBeanpublic ObjectName getObjectName()
ObjectName of this mbean.ObjectNameRingBufferAdminMBean.PATTERN_ASYNC_LOGGER,
RingBufferAdminMBean.PATTERN_ASYNC_LOGGER_CONFIGCopyright © 1999-2021 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.