Interface IHealthCheck.Result

  • Enclosing interface:
    IHealthCheck

    public static interface IHealthCheck.Result
    Interface for a health check result.
    • Method Detail

      • isHealthy

        boolean isHealthy()
        Returns:
        true if the health check was successful, false otherwise.
      • getMessage

        String getMessage()
        Returns:
        The message of the health check.
      • unhealthy

        static IHealthCheck.Result unhealthy​(String message)
        Parameters:
        message - The message of the health check.
        Returns:
        An unhealthy health check result.
      • unhealthy

        static IHealthCheck.Result unhealthy​(Throwable t)
        Parameters:
        t - The exception that caused the health check to fail.
        Returns:
        An unhealthy health check result.