Class Health.Builder
java.lang.Object
org.apache.juneau.rest.server.health.Health.Builder
- Enclosing class:
- Health
Builder for
Health.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a health result.Adds a structured detail.Overrides the error attached to this result.
-
Method Details
-
detail
Adds a structured detail.- Parameters:
key- Detail key. Must not benull or empty.value- Detail value. Can benull (the detail is recorded with anull value).- Returns:
- This builder.
-
error
Overrides the error attached to this result.- Parameters:
value- The throwable. Can benull (clears the error).- Returns:
- This builder.
-
build
Builds a health result.- Returns:
- A new health result.
-