Interface HealthAggregator
- All Known Implementing Classes:
AbstractHealthAggregator
,OrderedHealthAggregator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface HealthAggregator
Strategy interface used to aggregateHealth
instances into a final one.This is especially useful to combine subsystem states expressed through
Health.getStatus()
into one state for the entire system. The default implementationOrderedHealthAggregator
sortsStatus
instances based on a priority list.It is possible to add more complex
Status
types to the system. In that case either theOrderedHealthAggregator
needs to be properly configured or users need to register a customHealthAggregator
as bean.- Since:
- 1.1.0
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Health
aggregate(Map<String,Health> healths)
Aggregate several givenHealth
instances into one.