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
ConstructorDescriptionDefaultReactiveHealthContributorRegistry
(Map<String, ReactiveHealthContributor> contributors, Function<String, String> nameFactory) -
Method Summary
Modifier and TypeMethodDescriptiongetContributor
(String name) Return the contributor with the given name.iterator()
void
registerContributor
(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, wait
Methods inherited from interface org.springframework.boot.actuate.health.ContributorRegistry
registerContributor, unregisterContributor
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods 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:ContributorRegistry
Register a contributor with the givenname
.- Specified by:
registerContributor
in interfaceContributorRegistry<C>
- Parameters:
name
- the name of the contributorcontributor
- the contributor to register
-
unregisterContributor
Description copied from interface:ContributorRegistry
Unregister a previously registered contributor.- Specified by:
unregisterContributor
in interfaceContributorRegistry<C>
- 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 givenname
.
-
getContributor
Description copied from interface:NamedContributors
Return the contributor with the given name.- Specified by:
getContributor
in interfaceNamedContributors<C>
- Parameters:
name
- the name of the contributor- Returns:
- a contributor instance or
null
-
iterator
-