Class GcInfo

java.lang.Object
com.sun.management.GcInfo
All Implemented Interfaces:
CompositeData, CompositeDataView

public class GcInfo extends Object implements CompositeData, CompositeDataView
Garbage collection information. It contains the following information for one garbage collection as well as GC-specific attributes:
  • Start time
  • End time
  • Duration
  • Memory usage before the collection starts
  • Memory usage after the collection ends

GcInfo is a CompositeData The GC-specific attributes can be obtained via the CompositeData interface. This is a historical relic, and other classes should not copy this pattern. Use CompositeDataView instead.

MXBean Mapping

GcInfo is mapped to a CompositeData with attributes as specified in the from method.
Since:
1.5