Class 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 Detail

      • ThreadHealthCheck

        public ThreadHealthCheck​(long maxThreadCount)
    • Method Detail

      • call

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