All Superinterfaces:
BaseEvent
All Known Subinterfaces:
BalancedEvent, GenconEvent
All Known Implementing Classes:
BalancedEventObject, GCEventObject, GenconEventObject

public interface GCEvent extends BaseEvent
This class defines the values returned with a GC event takes place and is used by the GCEventListener interface
  • Method Details

    • getHeapSize

      long getHeapSize()
      Returns:
      the size of the heap in mb
    • getFreeHeapAfterGC

      long getFreeHeapAfterGC()
      Returns:
      the size of the free heap after a garbage collection has taken place
    • getUsedHeapAfterGC

      long getUsedHeapAfterGC()
      Returns:
      the size of the used heap after a garbage collection has taken place
    • getPauseTime

      double getPauseTime()
      Returns:
      the duration of the garbage collection in milliseconds
    • getReason

      String getReason()
      Returns:
      The reason of the garbage collection e.g. allocation failure
    • getType

      String getType()
      Returns:
      The type of the garbage collection e.g. system gc
    • getLoaSize

      long getLoaSize()
      Returns:
      The size of the large object allocation area
    • getLoaFreeSize

      long getLoaFreeSize()
      Returns:
      The free space in the large object allocation area
    • getFinalReferencesCleared

      long getFinalReferencesCleared()
      Returns:
      The number of final references cleared
    • getMarkTime

      double getMarkTime()
      Returns:
      The duration of the mark phase
    • getSweepTime

      double getSweepTime()
      Returns:
      The duration of the sweep phase
    • getCompactTime

      double getCompactTime()
      Returns:
      The duration of the compaction phase
    • getGCMode

      String getGCMode()
      Returns:
      The gc mode