Interface MemoryPressureController

All Known Implementing Classes:
MemoryPressureController.JvmMemoryPressureController
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MemoryPressureController
Determines whether caches should proactively shed entries.
  • Field Details

    • MEMORY_PRESSURE_HEAP_THRESHOLD_PERCENT_PROPERTY

      static final String MEMORY_PRESSURE_HEAP_THRESHOLD_PERCENT_PROPERTY
      Heap usage percentage that triggers JVM-wide memory-aware cache trimming. Defaults to 85.
      See Also:
    • MEMORY_PRESSURE_GC_TIME_THRESHOLD_PERCENT_PROPERTY

      static final String MEMORY_PRESSURE_GC_TIME_THRESHOLD_PERCENT_PROPERTY
      GC-time percentage over the sampling window that triggers JVM-wide memory-aware cache trimming. Defaults to 20.
      See Also:
    • MEMORY_PRESSURE_TRIM_RATIO_PERCENT_PROPERTY

      static final String MEMORY_PRESSURE_TRIM_RATIO_PERCENT_PROPERTY
      Percentage of the registered memory-aware cache weight to evict per observed memory-pressure pass. Defaults to 20.
      See Also:
    • MEMORY_PRESSURE_MAX_TRIM_WEIGHT_PROPERTY

      static final String MEMORY_PRESSURE_MAX_TRIM_WEIGHT_PROPERTY
      Maximum cache weight to evict per observed memory-pressure pass. For byte-weighted caches this is bytes; for count-weighted caches this is entries. Defaults to 1 GiB.
      See Also:
    • NONE

      static final MemoryPressureController NONE
  • Method Details