public interface ReactiveHealthIndicatorRegistry
ReactiveHealthIndicators
.
Implementations must be thread-safe.
Modifier and Type | Method and Description |
---|---|
ReactiveHealthIndicator |
get(String name)
Returns the
ReactiveHealthIndicator registered with the given name . |
Map<String,ReactiveHealthIndicator> |
getAll()
Returns a snapshot of the registered health indicators and their names.
|
void |
register(String name,
ReactiveHealthIndicator healthIndicator)
Registers the given
ReactiveHealthIndicator , associating it with the given
name . |
ReactiveHealthIndicator |
unregister(String name)
Unregisters the
ReactiveHealthIndicator previously registered with the
given name . |
void register(String name, ReactiveHealthIndicator healthIndicator)
ReactiveHealthIndicator
, associating it with the given
name
.name
- the name of the indicatorhealthIndicator
- the indicatorIllegalStateException
- if an indicator with the given name
is
already registered.ReactiveHealthIndicator unregister(String name)
ReactiveHealthIndicator
previously registered with the
given name
.name
- the name of the indicatornull
if no indicator was found in
the registry for the given name
.ReactiveHealthIndicator get(String name)
ReactiveHealthIndicator
registered with the given name
.name
- the name of the indicatornull
if no indicator was registered with
the given name
.Map<String,ReactiveHealthIndicator> getAll()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.