Interface ReactiveHealthContributorRegistry
- All Superinterfaces:
Iterable<ReactiveHealthContributors.Entry>, ReactiveHealthContributors
- All Known Implementing Classes:
DefaultReactiveHealthContributorRegistry
A mutable registry of
reactive health contributors.- Since:
- 4.0.0
- Author:
- Phillip Webb
-
Nested Class Summary
Nested classes/interfaces inherited from interface ReactiveHealthContributors
ReactiveHealthContributors.Entry -
Method Summary
Modifier and TypeMethodDescriptionvoidregisterContributor(String name, ReactiveHealthContributor contributor) Register a contributor with the givenname.@Nullable ReactiveHealthContributorunregisterContributor(String name) Unregister a previously registered contributor.Methods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface ReactiveHealthContributors
asHealthContributors, getContributor, iterator, stream
-
Method Details
-
registerContributor
Register a contributor with the givenname.- Parameters:
name- the name of the contributorcontributor- the contributor to register- Throws:
IllegalStateException- if the contributor cannot be registered with the givenname.
-
unregisterContributor
Unregister a previously registered contributor.- Parameters:
name- the name of the contributor to unregister- Returns:
- the unregistered indicator, or
nullif no indicator was found in the registry for the givenname.
-