Class HealthCheck

    • Constructor Detail

      • HealthCheck

        public HealthCheck()
    • Method Detail

      • check

        protected abstract HealthCheck.Result check()
                                             throws Exception
        Perform a check of the application component.
        Returns:
        if the component is healthy, a healthy HealthCheck.Result; otherwise, an unhealthy HealthCheck.Result with a descriptive error message or exception
        Throws:
        Exception - if there is an unhandled error during the health check; this will result in a failed health check
      • clock

        protected Clock clock()