public class DefaultReactiveHealthContributorRegistry extends Object implements ReactiveHealthContributorRegistry
ReactiveHealthContributorRegistry implementation.| Constructor and Description |
|---|
DefaultReactiveHealthContributorRegistry() |
DefaultReactiveHealthContributorRegistry(Map<String,ReactiveHealthContributor> contributors) |
DefaultReactiveHealthContributorRegistry(Map<String,ReactiveHealthContributor> contributors,
Function<String,String> nameFactory) |
| Modifier and Type | Method and Description |
|---|---|
C |
getContributor(String name)
Return the contributor with the given name.
|
Iterator<NamedContributor<C>> |
iterator() |
void |
registerContributor(String name,
C contributor)
Register a contributor with the given
name. |
C |
unregisterContributor(String name)
Unregister a previously registered contributor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterContributor, unregisterContributorgetContributor, streamforEach, iterator, spliteratorpublic DefaultReactiveHealthContributorRegistry()
public DefaultReactiveHealthContributorRegistry(Map<String,ReactiveHealthContributor> contributors)
public void registerContributor(String name, C contributor)
ContributorRegistryname.registerContributor in interface ContributorRegistry<C>name - the name of the contributorcontributor - the contributor to registerpublic C unregisterContributor(String name)
ContributorRegistryunregisterContributor in interface ContributorRegistry<C>name - the name of the contributor to unregisternull if no indicator was found in
the registry for the given name.public C getContributor(String name)
NamedContributorsgetContributor in interface NamedContributors<C>name - the name of the contributornullpublic Iterator<NamedContributor<C>> iterator()
iterator in interface Iterable<NamedContributor<C>>