Class MemoryHealthIndicator

java.lang.Object
io.camunda.zeebe.util.health.MemoryHealthIndicator
All Implemented Interfaces:
org.springframework.boot.actuate.health.HealthContributor, org.springframework.boot.actuate.health.HealthIndicator

public final class MemoryHealthIndicator extends Object implements org.springframework.boot.actuate.health.HealthIndicator
Health indicator that compares the free memory against a given threshold. The threshold is given in percent of max memory.
  • Constructor Details

    • MemoryHealthIndicator

      public MemoryHealthIndicator(double threshold)
      Constructs a memory health indicator
      Parameters:
      threshold - threshold of free memory in percent; must be a value between ]0,1[
  • Method Details

    • getThreshold

      public double getThreshold()
    • health

      public org.springframework.boot.actuate.health.Health health()
      Specified by:
      health in interface org.springframework.boot.actuate.health.HealthIndicator