- 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 SummaryModifier and Type Method Description GcInfogetLastGcInfo()Returns the GC information about the most recent GC.Methods declared in interface java.lang.management.GarbageCollectorMXBeangetCollectionCount, getCollectionTimeMethods declared in interface java.lang.management.MemoryManagerMXBeangetMemoryPoolNames, getName, isValid
- 
Method Details- 
getLastGcInfoGcInfo getLastGcInfo()Returns the GC information about the most recent GC. This method returns aGcInfo. If no GC information is available,nullis returned. The collector-specific attributes, if any, can be obtained via theCompositeDatainterface.MBeanServer access: The mapped type of GcInfoisCompositeDatawith attributes specified inGcInfo.- Returns:
- a GcInfoobject representing the most GC information; ornullif no GC information available.
 
 
-