Package io.smallrye.health.checks
Class NonHeapMemoryHealthCheck
java.lang.Object
io.smallrye.health.checks.AbstractHeapMemoryHealthCheck
io.smallrye.health.checks.NonHeapMemoryHealthCheck
- All Implemented Interfaces:
org.eclipse.microprofile.health.HealthCheck
Health check implementation that is checking memory usage against available memory
@Produces
@ApplicationScoped
@Liveness
HealthCheck check1() {
return new NonHeapMemoryHealthCheck();
}
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.smallrye.health.checks.AbstractHeapMemoryHealthCheck
getHealthCheckResponse
-
Constructor Details
-
NonHeapMemoryHealthCheck
public NonHeapMemoryHealthCheck() -
NonHeapMemoryHealthCheck
public NonHeapMemoryHealthCheck(double maxPercentage)
-
-
Method Details
-
call
public org.eclipse.microprofile.health.HealthCheckResponse call()
-