Interface StatusAggregator
- All Known Implementing Classes:
SimpleStatusAggregator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Strategy used to aggregate
Status instances.
This is required in order to combine subsystem states expressed through
Health.getStatus() into one state for the health endpoint.
- Since:
- 4.0.0
- Author:
- Phillip Webb
-
Method Summary
Modifier and TypeMethodDescriptiongetAggregateStatus(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.static StatusAggregatorReturn aStatusAggregatorbacked by the given ordered status list.static StatusAggregatorReturn aStatusAggregatorbacked by the given ordered status list.static StatusAggregatorReturn aStatusAggregatorbacked by the given ordered status list.
-
Method Details
-
getAggregateStatus
-
getAggregateStatus
-
of
Return aStatusAggregatorbacked by the given ordered status list.- Parameters:
order- the status order- Returns:
- a
StatusAggregatorinstance orgetDefault()if no order is provided - Since:
- 4.1.0
-
of
Return aStatusAggregatorbacked by the given ordered status list.- Parameters:
order- the status order- Returns:
- a
StatusAggregatorinstance orgetDefault()if no order is provided - Since:
- 4.1.0
-
of
Return aStatusAggregatorbacked by the given ordered status list.- Parameters:
order- the status order- Returns:
- a
StatusAggregatorinstance orgetDefault()if no order is provided - Since:
- 4.1.0
-
getDefault
ReturnStatusAggregatorinstance using default ordering rules.- Returns:
- a
StatusAggregatorwith default ordering rules.
-