Interface AvailabilityStateHealthIndicator.StatusMappings<S extends AvailabilityState>
- Type Parameters:
S
- the availability state type
- Enclosing class:
- AvailabilityStateHealthIndicator
public static interface AvailabilityStateHealthIndicator.StatusMappings<S extends AvailabilityState>
Callback used to add status mappings.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a new status mapping .default void
addDefaultStatus
(Status status) Add the status that should be used if no explicit mapping is defined.
-
Method Details
-
addDefaultStatus
Add the status that should be used if no explicit mapping is defined.- Parameters:
status
- the default status
-
add
Add a new status mapping .- Parameters:
availabilityState
- the availability statestatus
- the mapped status
-