Package org.jgrapes.io.util
Interface ManagedBufferPool.ManagedBufferPoolMXBean
- Enclosing class:
ManagedBufferPool<W extends ManagedBuffer<T>,T extends Buffer>
public static interface ManagedBufferPool.ManagedBufferPoolMXBean
An MBean interface for getting information about the managed
buffer pools.
Note that created buffer pools are tracked using weak references. Therefore, the MBean may report more pools than are really in use.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classInformation about a single managed pool.static classThree views on the existing pool. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the acquire warning limit.Summary information about the created buffers.longReturns the drain delay in milli seconds.Summary information about the pooled buffers.Informations about the pools.voidsetAcquireWarningLimit(long millis) Set the acquire warning limit.voidsetDefaultDrainDelay(long millis) Set the default drain delay.
-
Method Details
-
setDefaultDrainDelay
Set the default drain delay.- Parameters:
millis- the drain delay in milli seconds
-
getDefaultDrainDelay
long getDefaultDrainDelay()Returns the drain delay in milli seconds.- Returns:
- the value
-
setAcquireWarningLimit
Set the acquire warning limit.- Parameters:
millis- the limit
-
getAcquireWarningLimit
long getAcquireWarningLimit()Returns the acquire warning limit.- Returns:
- the value
-
getPoolInfos
Informations about the pools.- Returns:
- the map
-
getPooledPerPoolStatistics
Summary information about the pooled buffers.- Returns:
- the values
-
getCreatedPerPoolStatistics
Summary information about the created buffers.- Returns:
- the values
-