Package io.camunda.zeebe.util.health
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 Summary
ConstructorsConstructorDescriptionMemoryHealthIndicator(double threshold) Constructs a memory health indicator -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.boot.actuate.health.HealthIndicator
getHealth
-
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:
healthin interfaceorg.springframework.boot.actuate.health.HealthIndicator
-