-
- All Superinterfaces:
GarbageCollectorMXBean
,MemoryManagerMXBean
,PlatformManagedObject
public interface GarbageCollectorMXBean extends GarbageCollectorMXBean
Platform-specific management interface for a garbage collector which performs collections in cycles.This platform extension is only available to the garbage collection implementation that supports this extension.
- Since:
- 1.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GcInfo
getLastGcInfo()
Returns the GC information about the most recent GC.-
Methods inherited from interface java.lang.management.GarbageCollectorMXBean
getCollectionCount, getCollectionTime
-
Methods inherited from interface java.lang.management.MemoryManagerMXBean
getMemoryPoolNames, getName, isValid
-
Methods inherited from interface java.lang.management.PlatformManagedObject
getObjectName
-
-
-
-
Method Detail
-
getLastGcInfo
GcInfo getLastGcInfo()
Returns the GC information about the most recent GC. This method returns aGcInfo
. If no GC information is available,null
is returned. The collector-specific attributes, if any, can be obtained via theCompositeData
interface.MBeanServer access: The mapped type of
GcInfo
isCompositeData
with attributes specified inGcInfo
.- Returns:
- a
GcInfo
object representing the most GC information; ornull
if no GC information available.
-
-