Interface ReactiveHealthContributorRegistry

All Superinterfaces:
Iterable<ReactiveHealthContributors.Entry>, ReactiveHealthContributors
All Known Implementing Classes:
DefaultReactiveHealthContributorRegistry

public interface ReactiveHealthContributorRegistry extends ReactiveHealthContributors
A mutable registry of reactive health contributors.
Since:
4.0.0
Author:
Phillip Webb
  • Method Details

    • registerContributor

      void registerContributor(String name, ReactiveHealthContributor contributor)
      Register a contributor with the given name.
      Parameters:
      name - the name of the contributor
      contributor - the contributor to register
      Throws:
      IllegalStateException - if the contributor cannot be registered with the given name.
    • unregisterContributor

      @Nullable ReactiveHealthContributor unregisterContributor(String name)
      Unregister a previously registered contributor.
      Parameters:
      name - the name of the contributor to unregister
      Returns:
      the unregistered indicator, or null if no indicator was found in the registry for the given name.