HealthContributorRegistry
@Deprecated public interface HealthIndicatorRegistry
HealthIndicators
.
Implementations must be thread-safe.
HealthEndpoint
Modifier and Type | Method and Description |
---|---|
HealthIndicator |
get(String name)
Deprecated.
Returns the
HealthIndicator registered with the given name . |
Map<String,HealthIndicator> |
getAll()
Deprecated.
Returns a snapshot of the registered health indicators and their names.
|
void |
register(String name,
HealthIndicator healthIndicator)
Deprecated.
Registers the given
HealthIndicator , associating it with the given
name . |
HealthIndicator |
unregister(String name)
Deprecated.
Unregisters the
HealthIndicator previously registered with the given
name . |
void register(String name, HealthIndicator healthIndicator)
HealthIndicator
, associating it with the given
name
.name
- the name of the indicatorhealthIndicator
- the indicatorIllegalStateException
- if the indicator cannot be registered with the given
name
.HealthIndicator unregister(String name)
HealthIndicator
previously registered with the given
name
.name
- the name of the indicatornull
if no indicator was found in
the registry for the given name
.HealthIndicator get(String name)
HealthIndicator
registered with the given name
.name
- the name of the indicatornull
if no indicator was registered with
the given name
.Map<String,HealthIndicator> getAll()