Class HeapMemoryHealthCheck

  • All Implemented Interfaces:
    org.eclipse.microprofile.health.HealthCheck

    public class HeapMemoryHealthCheck
    extends AbstractHeapMemoryHealthCheck
    Health check implementation that is checking heap memory usage against available heap memory
     
     @Produces
     @ApplicationScoped
     @Liveness
     HealthCheck check1() {
         return new HeapMemoryHealthCheck();
     }
     
     
    • Constructor Detail

      • HeapMemoryHealthCheck

        public HeapMemoryHealthCheck()
      • HeapMemoryHealthCheck

        public HeapMemoryHealthCheck​(double maxPercentage)
    • Method Detail

      • call

        public org.eclipse.microprofile.health.HealthCheckResponse call()