Modifier and Type | Interface and Description |
---|---|
static interface |
HealthCheck.Result
Response to a health check invocation.
|
static class |
HealthCheck.State |
Modifier and Type | Field and Description |
---|---|
static String |
CHECK_ENABLED |
static String |
CHECK_GROUP |
static String |
CHECK_ID |
static String |
ENDPOINT_URI |
static String |
FAILURE_COUNT |
static String |
FAILURE_ENDPOINT_URI
Deprecated.
|
static String |
FAILURE_ERROR_COUNT |
static String |
HTTP_RESPONSE_CODE |
static String |
INVOCATION_ATTEMPT_TIME |
static String |
INVOCATION_COUNT |
static String |
INVOCATION_TIME |
static String |
SUCCESS_COUNT |
Modifier and Type | Method and Description |
---|---|
default HealthCheck.Result |
call()
Invoke the check.
|
HealthCheck.Result |
call(Map<String,Object> options)
Invoke the check.
|
HealthCheckConfiguration |
getConfiguration()
Return the configuration associated with this
HealthCheck . |
default Map<String,Object> |
getMetaData()
Return metadata associated with this
HealthCheck . |
default int |
getOrder()
Gets the order.
|
default boolean |
isLiveness()
Whether this health check can be used for liveness checks
|
default boolean |
isReadiness()
Whether this health check can be used for readiness checks
|
static final String CHECK_ID
static final String CHECK_GROUP
static final String CHECK_ENABLED
static final String INVOCATION_COUNT
static final String INVOCATION_TIME
static final String INVOCATION_ATTEMPT_TIME
static final String FAILURE_COUNT
static final String ENDPOINT_URI
static final String FAILURE_ERROR_COUNT
static final String SUCCESS_COUNT
static final String HTTP_RESPONSE_CODE
@Deprecated static final String FAILURE_ENDPOINT_URI
default int getOrder()
Ordered
Integer.MAX_VALUE
or eg Ordered.LOWEST
.default Map<String,Object> getMetaData()
HealthCheck
.default boolean isReadiness()
default boolean isLiveness()
HealthCheckConfiguration getConfiguration()
HealthCheck
.default HealthCheck.Result call()
call(Map)
HealthCheck.Result call(Map<String,Object> options)
Apache Camel