DefaultContributorRegistry@Deprecated public class DefaultReactiveHealthIndicatorRegistry extends Object implements ReactiveHealthIndicatorRegistry
ReactiveHealthIndicatorRegistry.| Constructor and Description |
|---|
DefaultReactiveHealthIndicatorRegistry()
Deprecated.
Create a new
DefaultReactiveHealthIndicatorRegistry. |
DefaultReactiveHealthIndicatorRegistry(Map<String,ReactiveHealthIndicator> healthIndicators)
Deprecated.
Create a new
DefaultReactiveHealthIndicatorRegistry from the specified
indicators. |
| Modifier and Type | Method and Description |
|---|---|
ReactiveHealthIndicator |
get(String name)
Deprecated.
Returns the
ReactiveHealthIndicator registered with the given name. |
Map<String,ReactiveHealthIndicator> |
getAll()
Deprecated.
Returns a snapshot of the registered health indicators and their names.
|
void |
register(String name,
ReactiveHealthIndicator healthIndicator)
Deprecated.
Registers the given
ReactiveHealthIndicator, associating it with the given
name. |
ReactiveHealthIndicator |
unregister(String name)
Deprecated.
Unregisters the
ReactiveHealthIndicator previously registered with the
given name. |
public DefaultReactiveHealthIndicatorRegistry()
DefaultReactiveHealthIndicatorRegistry.public DefaultReactiveHealthIndicatorRegistry(Map<String,ReactiveHealthIndicator> healthIndicators)
DefaultReactiveHealthIndicatorRegistry from the specified
indicators.healthIndicators - a map of HealthIndicators with the key being used
as an indicator name.public void register(String name, ReactiveHealthIndicator healthIndicator)
ReactiveHealthIndicatorRegistryReactiveHealthIndicator, associating it with the given
name.register in interface ReactiveHealthIndicatorRegistryname - the name of the indicatorhealthIndicator - the indicatorpublic ReactiveHealthIndicator unregister(String name)
ReactiveHealthIndicatorRegistryReactiveHealthIndicator previously registered with the
given name.unregister in interface ReactiveHealthIndicatorRegistryname - the name of the indicatornull if no indicator was found in
the registry for the given name.public ReactiveHealthIndicator get(String name)
ReactiveHealthIndicatorRegistryReactiveHealthIndicator registered with the given name.get in interface ReactiveHealthIndicatorRegistryname - the name of the indicatornull if no indicator was registered with
the given name.public Map<String,ReactiveHealthIndicator> getAll()
ReactiveHealthIndicatorRegistrygetAll in interface ReactiveHealthIndicatorRegistryCopyright © 2020 Pivotal Software, Inc.. All rights reserved.