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 Details

    • ThreadHealthCheck

      public ThreadHealthCheck(long maxThreadCount)
  • Method Details

    • call

      public org.eclipse.microprofile.health.HealthCheckResponse call()
      Specified by:
      call in interface org.eclipse.microprofile.health.HealthCheck