public abstract class HealthCheck extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HealthCheck.Result
The result of a
HealthCheck being run. |
static class |
HealthCheck.ResultBuilder
This a convenient builder for an
HealthCheck.Result. |
| Constructor and Description |
|---|
HealthCheck() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract HealthCheck.Result |
check()
Perform a check of the application component.
|
HealthCheck.Result |
execute()
Executes the health check, catching and handling any exceptions raised by
check(). |
protected abstract HealthCheck.Result check() throws Exception
HealthCheck.Result; otherwise, an unhealthy HealthCheck.Result with a descriptive error message or exceptionException - if there is an unhandled error during the health check; this will result in
a failed health checkpublic HealthCheck.Result execute()
check().HealthCheck.Result; otherwise, an unhealthy HealthCheck.Result with a descriptive error message or exceptionCopyright © 2017. All Rights Reserved.