@FunctionalInterface public interface StatusAggregator
Status
instances.
This is required in order to combine subsystem states expressed through
Health.getStatus()
into one state for the entire system.
Modifier and Type | Method and Description |
---|---|
Status |
getAggregateStatus(Set<Status> statuses)
Return the aggregate status for the given set of statuses.
|
default Status |
getAggregateStatus(Status... statuses)
Return the aggregate status for the given set of statuses.
|
static StatusAggregator |
getDefault()
Return
StatusAggregator instance using default ordering rules. |
static StatusAggregator getDefault()
StatusAggregator
instance using default ordering rules.StatusAggregator
with default ordering rules.default Status getAggregateStatus(Status... statuses)
statuses
- the statuses to aggregate