Class HealthCheckResultBuilder
java.lang.Object
org.apache.camel.health.HealthCheckResultBuilder
- All Implemented Interfaces:
Builder<HealthCheck.Result>
A builder helper to create a
HealthCheck result.-
Method Summary
Modifier and TypeMethodDescriptionbuild()@Nullable ObjectGets a detail value by key from the health check result.Sets a detail key/value pair for the health check result.Sets multiple detail key/value pairs for the health check result.down()Marks the health check as DOWN.@Nullable Throwableerror()Gets the error associated with the health check result.Sets the error associated with the health check result.@Nullable Stringmessage()Gets the message for the health check result.Sets the message for the health check result.static HealthCheckResultBuilderon(HealthCheck check) Creates a new builder for the given health check.@Nullable HealthCheck.Statestate()Gets the state of the health check result.state(HealthCheck.State state) Sets the state for the health check result.toString()unknown()Marks the health check as UNKNOWN.up()Marks the health check as UP.
-
Method Details
-
message
Gets the message for the health check result. -
message
Sets the message for the health check result. -
error
Gets the error associated with the health check result. -
error
Sets the error associated with the health check result. -
detail
-
detail
Sets a detail key/value pair for the health check result. -
details
Sets multiple detail key/value pairs for the health check result. -
state
Gets the state of the health check result. -
state
Sets the state for the health check result. -
up
Marks the health check as UP. -
down
Marks the health check as DOWN. -
unknown
Marks the health check as UNKNOWN. -
build
- Specified by:
buildin interfaceBuilder<HealthCheck.Result>
-
on
Creates a new builder for the given health check. -
toString
-