The management interface for a buffer pool, for example a pool of {@link java.nio.ByteBuffer#allocateDirect direct} or {@link java.nio.MappedByteBuffer mapped} buffers.
A class implementing this interface is an {@link javax.management.MXBean}. A Java virtual machine has one or more implementations of this interface. The {@link java.lang.management.ManagementFactory#getPlatformMXBeans getPlatformMXBeans}method can be used to obtain the list of {@code BufferPoolMXBean} objectsrepresenting the management interfaces for pools of buffers as follows:
List<BufferPoolMXBean> pools = ManagementFactory.getPlatformMXBeans(BufferPoolMXBean.class);
The management interfaces are also registered with the platform {@link javax.management.MBeanServer MBeanServer}. The {@link javax.management.ObjectName ObjectName} that uniquely identifies themanagement interface within the {@code MBeanServer} takes the form:
java.nio:type=BufferPool,name=pool name
where
pool name is the {@link #getName name} of the buffer pool.
@since 1.7