接口 HealthAggregator
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
@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.- 从以下版本开始:
- 1.1.0