Class DefaultReactiveHealthContributorRegistry
java.lang.Object
org.springframework.boot.actuate.health.DefaultReactiveHealthContributorRegistry
- All Implemented Interfaces:
Iterable<NamedContributor<ReactiveHealthContributor>>,ContributorRegistry<ReactiveHealthContributor>,NamedContributors<ReactiveHealthContributor>,ReactiveHealthContributorRegistry
public class DefaultReactiveHealthContributorRegistry
extends Object
implements ReactiveHealthContributorRegistry
Default
ReactiveHealthContributorRegistry implementation.- Since:
- 2.0.0
- Author:
- Phillip Webb
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultReactiveHealthContributorRegistry(Map<String, ReactiveHealthContributor> contributors, Function<String, String> nameFactory) -
Method Summary
Modifier and TypeMethodDescriptiongetContributor(String name) Return the contributor with the given name.iterator()voidregisterContributor(String name, ReactiveHealthContributor contributor) Register a contributor with the givenname.unregisterContributor(String name) Unregister a previously registered contributor.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.boot.actuate.health.ContributorRegistry
registerContributor, unregisterContributorMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.springframework.boot.actuate.health.NamedContributors
getContributor, stream
-
Constructor Details
-
DefaultReactiveHealthContributorRegistry
public DefaultReactiveHealthContributorRegistry() -
DefaultReactiveHealthContributorRegistry
-
DefaultReactiveHealthContributorRegistry
-
-
Method Details
-
registerContributor
Description copied from interface:ContributorRegistryRegister a contributor with the givenname.- Specified by:
registerContributorin interfaceContributorRegistry<C>- Parameters:
name- the name of the contributorcontributor- the contributor to register
-
unregisterContributor
Description copied from interface:ContributorRegistryUnregister a previously registered contributor.- Specified by:
unregisterContributorin interfaceContributorRegistry<C>- 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.
-
getContributor
Description copied from interface:NamedContributorsReturn the contributor with the given name.- Specified by:
getContributorin interfaceNamedContributors<C>- Parameters:
name- the name of the contributor- Returns:
- a contributor instance or
null
-
iterator
-