RingBufferAdminMBean
public class RingBufferAdmin extends Object implements RingBufferAdminMBean
PATTERN_ASYNC_LOGGER, PATTERN_ASYNC_LOGGER_CONFIG
Modifier | Constructor | Description |
---|---|---|
protected |
RingBufferAdmin(com.lmax.disruptor.RingBuffer<?> ringBuffer,
String mbeanName) |
Modifier and Type | Method | 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()
RingBufferAdminMBean
getBufferSize
in interface RingBufferAdminMBean
public long getRemainingCapacity()
RingBufferAdminMBean
getRemainingCapacity
in interface RingBufferAdminMBean
public ObjectName getObjectName()
ObjectName
of this mbean.ObjectName
RingBufferAdminMBean.PATTERN_ASYNC_LOGGER
,
RingBufferAdminMBean.PATTERN_ASYNC_LOGGER_CONFIG
Copyright © 1999-2018. 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.