HealthCheck.Result

interface Result

An interface representing the result of a completed health check.

Methods

getError

Throwable getError()

Get the thrown error for a health check that resulted in an error.

Returns:the thrown exception.

getMessage

String getMessage()

Get the status message of a health check.

Returns:the status message.

isHealthy

boolean isHealthy()

Get whether the result is healthy or unhealthy.

Returns:true if the health check was successful, false otherwise.