Interface NamedContributors<C>

Type Parameters:
C - the contributor type
All Superinterfaces:
Iterable<NamedContributor<C>>
All Known Subinterfaces:
CompositeHealthContributor, CompositeReactiveHealthContributor, ContributorRegistry<C>, HealthContributorRegistry, ReactiveHealthContributorRegistry
All Known Implementing Classes:
DefaultHealthContributorRegistry, DefaultReactiveHealthContributorRegistry

public interface NamedContributors<C> extends Iterable<NamedContributor<C>>
A collection of named health endpoint contributors (either HealthContributor or ReactiveHealthContributor).
Since:
2.0.0
Author:
Phillip Webb
See Also:
  • Method Details

    • getContributor

      C getContributor(String name)
      Return the contributor with the given name.
      Parameters:
      name - the name of the contributor
      Returns:
      a contributor instance or null
    • stream

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