public class DefaultReactiveHealthContributorRegistry extends java.lang.Object implements ReactiveHealthContributorRegistry
ReactiveHealthContributorRegistry implementation.| Constructor and Description |
|---|
DefaultReactiveHealthContributorRegistry() |
DefaultReactiveHealthContributorRegistry(java.util.Map<java.lang.String,ReactiveHealthContributor> contributors) |
DefaultReactiveHealthContributorRegistry(java.util.Map<java.lang.String,ReactiveHealthContributor> contributors,
java.util.function.Function<java.lang.String,java.lang.String> nameFactory) |
| Modifier and Type | Method and Description |
|---|---|
C |
getContributor(java.lang.String name)
Return the contributor with the given name.
|
java.util.Iterator<NamedContributor<C>> |
iterator() |
void |
registerContributor(java.lang.String name,
C contributor)
Register a contributor with the given
name. |
C |
unregisterContributor(java.lang.String name)
Unregister a previously registered contributor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterContributor, unregisterContributorgetContributor, streampublic DefaultReactiveHealthContributorRegistry()
public DefaultReactiveHealthContributorRegistry(java.util.Map<java.lang.String,ReactiveHealthContributor> contributors)
public DefaultReactiveHealthContributorRegistry(java.util.Map<java.lang.String,ReactiveHealthContributor> contributors, java.util.function.Function<java.lang.String,java.lang.String> nameFactory)
public void registerContributor(java.lang.String name,
C contributor)
ContributorRegistryname.registerContributor in interface ContributorRegistry<C>name - the name of the contributorcontributor - the contributor to registerpublic C unregisterContributor(java.lang.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(java.lang.String name)
NamedContributorsgetContributor in interface NamedContributors<C>name - the name of the contributornullpublic java.util.Iterator<NamedContributor<C>> iterator()
iterator in interface java.lang.Iterable<NamedContributor<C>>