DefaultContributorRegistry@Deprecated public class DefaultHealthIndicatorRegistry extends java.lang.Object implements HealthIndicatorRegistry
HealthIndicatorRegistry.| Constructor and Description |
|---|
DefaultHealthIndicatorRegistry()
Deprecated.
Create a new
DefaultHealthIndicatorRegistry. |
DefaultHealthIndicatorRegistry(java.util.Map<java.lang.String,HealthIndicator> healthIndicators)
Deprecated.
Create a new
DefaultHealthIndicatorRegistry from the specified indicators. |
| Modifier and Type | Method and Description |
|---|---|
HealthIndicator |
get(java.lang.String name)
Deprecated.
Returns the
HealthIndicator registered with the given name. |
java.util.Map<java.lang.String,HealthIndicator> |
getAll()
Deprecated.
Returns a snapshot of the registered health indicators and their names.
|
void |
register(java.lang.String name,
HealthIndicator healthIndicator)
Deprecated.
Registers the given
HealthIndicator, associating it with the given
name. |
HealthIndicator |
unregister(java.lang.String name)
Deprecated.
Unregisters the
HealthIndicator previously registered with the given
name. |
public DefaultHealthIndicatorRegistry()
DefaultHealthIndicatorRegistry.public DefaultHealthIndicatorRegistry(java.util.Map<java.lang.String,HealthIndicator> healthIndicators)
DefaultHealthIndicatorRegistry from the specified indicators.healthIndicators - a map of HealthIndicators with the key being used
as an indicator name.public void register(java.lang.String name,
HealthIndicator healthIndicator)
HealthIndicatorRegistryHealthIndicator, associating it with the given
name.register in interface HealthIndicatorRegistryname - the name of the indicatorhealthIndicator - the indicatorpublic HealthIndicator unregister(java.lang.String name)
HealthIndicatorRegistryHealthIndicator previously registered with the given
name.unregister in interface HealthIndicatorRegistryname - the name of the indicatornull if no indicator was found in
the registry for the given name.public HealthIndicator get(java.lang.String name)
HealthIndicatorRegistryHealthIndicator registered with the given name.get in interface HealthIndicatorRegistryname - the name of the indicatornull if no indicator was registered with
the given name.public java.util.Map<java.lang.String,HealthIndicator> getAll()
HealthIndicatorRegistrygetAll in interface HealthIndicatorRegistry