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
Modifier and TypeInterfaceDescriptionstatic class
Information about a single managed pool.static class
Three views on the existing pool. -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the acquire warning limit.Summary information about the created buffers.long
Returns the drain delay in milli seconds.Summary information about the pooled buffers.Informations about the pools.void
setAcquireWarningLimit
(long millis) Set the acquire warning limit.void
setDefaultDrainDelay
(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
-