Package io.smallrye.health.checks
Class ThreadHealthCheck
java.lang.Object
io.smallrye.health.checks.ThreadHealthCheck
- All Implemented Interfaces:
org.eclipse.microprofile.health.HealthCheck
public class ThreadHealthCheck
extends Object
implements org.eclipse.microprofile.health.HealthCheck
Health check implementation that is checking the number of threads
@Produces
@ApplicationScoped
@Liveness
HealthCheck check1() {
return new ThreadHealthCheck(9999999L);
}
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ThreadHealthCheck
public ThreadHealthCheck(long maxThreadCount)
-
-
Method Details
-
call
public org.eclipse.microprofile.health.HealthCheckResponse call()- Specified by:
callin interfaceorg.eclipse.microprofile.health.HealthCheck
-