Class HealthResult.Builder
java.lang.Object
io.micronaut.management.health.indicator.HealthResult.Builder
- Enclosing interface:
- HealthResult
Helper class to build instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the result.Sets the details of the result.Builds the details based off an exception.status
(HealthStatus status) Assigns the status to the builder.
-
Method Details
-
status
Assigns the status to the builder.- Parameters:
status
- The status, null allowed- Returns:
- The builder
-
exception
Builds the details based off an exception.- Parameters:
ex
- The exception that occurred- Returns:
- The builder
-
details
Sets the details of the result.- Parameters:
details
- The details, null allowed- Returns:
- The builder
-
build
Builds the result.- Returns:
- The
HealthResult
-