接口 AvailabilityStateHealthIndicator.StatusMappings<S extends AvailabilityState>
- 类型参数:
S
- the availability state type
public static interface AvailabilityStateHealthIndicator.StatusMappings<S extends AvailabilityState>
Callback used to add status mappings.
-
方法概要
修饰符和类型方法说明void
Add a new status mapping .default void
addDefaultStatus
(Status status) Add the status that should be used if no explicit mapping is defined.
-
方法详细资料
-
addDefaultStatus
Add the status that should be used if no explicit mapping is defined.- 参数:
status
- the default status
-
add
Add a new status mapping .- 参数:
availabilityState
- the availability statestatus
- the mapped status
-