public interface BufferPoolMXBean extends PlatformManagedObject
A class implementing this interface is an
MXBean. A Java
virtual machine has one or more implementations of this interface. The
method can be used to obtain the list of
representing the management interfaces for pools of buffers as follows:
List<BufferPoolMXBean> pools = ManagementFactory.getPlatformMXBeans(BufferPoolMXBean.class);
java.nio:type=BufferPool,name=pool namewhere pool name is the
nameof the buffer pool.
|Modifier and Type||Method and Description|
Returns an estimate of the number of buffers in the pool.
Returns an estimate of the memory that the Java virtual machine is using for this buffer pool.
Returns the name representing this buffer pool.
Returns an estimate of the total capacity of the buffers in this pool.
capacityof the buffers in this pool. This difference is explained by alignment, memory allocator, and other implementation specific reasons.
-1Lif an estimate of the memory usage is not available