接口 StatusAggregator
- 所有已知实现类:
SimpleStatusAggregator
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
Strategy used to aggregate
Status instances.
This is required in order to combine subsystem states expressed through
Health.getStatus() into one state for the entire system.
- 从以下版本开始:
- 2.2.0
- 作者:
- Phillip Webb
-
方法概要
修饰符和类型方法说明getAggregateStatus(Set<Status> statuses) Return the aggregate status for the given set of statuses.default StatusgetAggregateStatus(Status... statuses) Return the aggregate status for the given set of statuses.static StatusAggregatorReturnStatusAggregatorinstance using default ordering rules.
-
方法详细资料
-
getDefault
ReturnStatusAggregatorinstance using default ordering rules.- 返回:
- a
StatusAggregatorwith default ordering rules. - 从以下版本开始:
- 2.3.0
-
getAggregateStatus
Return the aggregate status for the given set of statuses.- 参数:
statuses- the statuses to aggregate- 返回:
- the aggregate status
-
getAggregateStatus
Return the aggregate status for the given set of statuses.- 参数:
statuses- the statuses to aggregate- 返回:
- the aggregate status
-