接口 StatusAggregator

所有已知实现类:
SimpleStatusAggregator
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface StatusAggregator
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
  • 方法详细资料

    • getDefault

      static StatusAggregator getDefault()
      Return StatusAggregator instance using default ordering rules.
      返回:
      a StatusAggregator with default ordering rules.
      从以下版本开始:
      2.3.0
    • getAggregateStatus

      default Status getAggregateStatus(Status... statuses)
      Return the aggregate status for the given set of statuses.
      参数:
      statuses - the statuses to aggregate
      返回:
      the aggregate status
    • getAggregateStatus

      Status getAggregateStatus(Set<Status> statuses)
      Return the aggregate status for the given set of statuses.
      参数:
      statuses - the statuses to aggregate
      返回:
      the aggregate status