Class DynamicMemoryResizer

java.lang.Object
org.infinispan.container.impl.DynamicMemoryResizer
All Implemented Interfaces:
MemoryMonitor.Listener

public class DynamicMemoryResizer extends Object implements MemoryMonitor.Listener
  • Constructor Details

    • DynamicMemoryResizer

      public DynamicMemoryResizer()
  • Method Details

    • onMemoryLow

      public void onMemoryLow()
      Description copied from interface: MemoryMonitor.Listener
      Invoked when old generation heap usage exceeds the configured memory threshold. Fires once when the threshold is first crossed; subsequent JMX notifications while already in the low memory state are suppressed.
      Specified by:
      onMemoryLow in interface MemoryMonitor.Listener
    • onGcPressureHigh

      public void onGcPressureHigh()
      Description copied from interface: MemoryMonitor.Listener
      Invoked when the ratio of time spent in GC over the rolling pressure window exceeds the configured GC pressure threshold. Fires once on the transition; further GC events while pressure remains high are suppressed.
      Specified by:
      onGcPressureHigh in interface MemoryMonitor.Listener
    • onMemoryRecovered

      public void onMemoryRecovered()
      Description copied from interface: MemoryMonitor.Listener
      Invoked after a GC cycle when old generation usage has dropped back below the memory threshold, following a prior MemoryMonitor.Listener.onMemoryLow() notification.
      Specified by:
      onMemoryRecovered in interface MemoryMonitor.Listener
    • onGcPressureRelieved

      public void onGcPressureRelieved()
      Description copied from interface: MemoryMonitor.Listener
      Invoked when a GC event causes the rolling pressure ratio to drop back below the threshold, following a prior MemoryMonitor.Listener.onGcPressureHigh() notification.
      Specified by:
      onGcPressureRelieved in interface MemoryMonitor.Listener
    • onGcCompleted

      public void onGcCompleted()
      Description copied from interface: MemoryMonitor.Listener
      Invoked after every GC event, regardless of alert state. Useful for listeners that need to recheck their own state after GC has reclaimed memory — for example, to verify whether a previous corrective action (like shrinking a container) was sufficient.
      Specified by:
      onGcCompleted in interface MemoryMonitor.Listener