org.springframework.boot.actuate.health

Class AbstractHealthIndicator

  • java.lang.Object
    • org.springframework.boot.actuate.health.AbstractHealthIndicator
    • Constructor Detail

      • AbstractHealthIndicator

        protected AbstractHealthIndicator()
        Create a new AbstractHealthIndicator instance with a default healthCheckFailedMessage.
      • AbstractHealthIndicator

        protected AbstractHealthIndicator(String healthCheckFailedMessage)
        Create a new AbstractHealthIndicator instance with a specific message to log when the health check fails.
        Parameters:
        healthCheckFailedMessage - the message to log on health check failure
        Since:
        2.0.0
      • AbstractHealthIndicator

        protected AbstractHealthIndicator(Function<Exception,String> healthCheckFailedMessage)
        Create a new AbstractHealthIndicator instance with a specific message to log when the health check fails.
        Parameters:
        healthCheckFailedMessage - the message to log on health check failure
        Since:
        2.0.0