接口 NamedContributors<C>

类型参数:
C - the contributor type
所有超级接口:
Iterable<NamedContributor<C>>
所有已知子接口:
CompositeHealthContributor, CompositeReactiveHealthContributor, ContributorRegistry<C>, HealthContributorRegistry, ReactiveHealthContributorRegistry
所有已知实现类:
DefaultHealthContributorRegistry, DefaultReactiveHealthContributorRegistry

public interface NamedContributors<C> extends Iterable<NamedContributor<C>>
A collection of named health endpoint contributors (either HealthContributor or ReactiveHealthContributor).
从以下版本开始:
2.0.0
作者:
Phillip Webb
另请参阅:
  • 方法详细资料

    • getContributor

      C getContributor(String name)
      Return the contributor with the given name.
      参数:
      name - the name of the contributor
      返回:
      a contributor instance or null
    • stream

      default Stream<NamedContributor<C>> stream()
      Return a stream of the named contributors.
      返回:
      the stream of named contributors