Interface IHealthCheck.Result
- Enclosing interface:
IHealthCheck
public static interface IHealthCheck.Result
Interface for a health check result.
- Since:
- 8.2.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic IHealthCheck.Resulthealthy()booleanstatic IHealthCheck.Resultstatic IHealthCheck.Result
-
Method Details
-
isHealthy
boolean isHealthy()- Returns:
trueif the health check was successful,falseotherwise.
-
getMessage
String getMessage()- Returns:
- The message of the health check.
-
healthy
- Returns:
- A healthy health check result.
-
unhealthy
- Parameters:
message- The message of the health check.- Returns:
- An unhealthy health check result.
-
unhealthy
- Parameters:
t- The exception that caused the health check to fail.- Returns:
- An unhealthy health check result.
-