public interface MemoryPoolMXBean
extends java.lang.management.MemoryPoolMXBean
Modifier and Type | Method and Description |
---|---|
java.lang.management.MemoryUsage |
getPreCollectionUsage()
If supported by the virtual machine, returns a
MemoryUsage which
encapsulates this memory pool's memory usage before the most
recent run of the garbage collector. |
getCollectionUsage, getCollectionUsageThreshold, getCollectionUsageThresholdCount, getMemoryManagerNames, getName, getPeakUsage, getType, getUsage, getUsageThreshold, getUsageThresholdCount, isCollectionUsageThresholdExceeded, isCollectionUsageThresholdSupported, isUsageThresholdExceeded, isUsageThresholdSupported, isValid, resetPeakUsage, setCollectionUsageThreshold, setUsageThreshold
java.lang.management.MemoryUsage getPreCollectionUsage()
MemoryUsage
which
encapsulates this memory pool's memory usage before the most
recent run of the garbage collector. No garbage collection will be
actually occur as a result of this method getting called.
The method will return a null
if the virtual machine does
not support this type of functionality.
CompositeData
with attributes as
specified in MemoryUsage
.MemoryUsage
containing the usage details for the memory
pool just before the most recent collection occurred.