public class ReactiveHealthIndicatorRegistryFactory extends Object
HealthIndicatorRegistry
.Constructor and Description |
---|
ReactiveHealthIndicatorRegistryFactory() |
ReactiveHealthIndicatorRegistryFactory(Function<String,String> healthIndicatorNameFactory) |
Modifier and Type | Method and Description |
---|---|
ReactiveHealthIndicatorRegistry |
createReactiveHealthIndicatorRegistry(Map<String,ReactiveHealthIndicator> reactiveHealthIndicators,
Map<String,HealthIndicator> healthIndicators)
Create a
ReactiveHealthIndicatorRegistry based on the specified health
indicators. |
protected <T extends ReactiveHealthIndicatorRegistry> |
initialize(T registry,
Map<String,ReactiveHealthIndicator> reactiveHealthIndicators,
Map<String,HealthIndicator> healthIndicators) |
public ReactiveHealthIndicatorRegistryFactory(Function<String,String> healthIndicatorNameFactory)
public ReactiveHealthIndicatorRegistryFactory()
public ReactiveHealthIndicatorRegistry createReactiveHealthIndicatorRegistry(Map<String,ReactiveHealthIndicator> reactiveHealthIndicators, Map<String,HealthIndicator> healthIndicators)
ReactiveHealthIndicatorRegistry
based on the specified health
indicators. Each HealthIndicator
are wrapped to a
HealthIndicatorReactiveAdapter
. If two instances share the same name, the
reactive variant takes precedence.reactiveHealthIndicators
- the ReactiveHealthIndicator
instances
mapped by namehealthIndicators
- the HealthIndicator
instances mapped by name if
any.ReactiveHealthIndicator
that delegates to the specified
reactiveHealthIndicators
.protected <T extends ReactiveHealthIndicatorRegistry> T initialize(T registry, Map<String,ReactiveHealthIndicator> reactiveHealthIndicators, Map<String,HealthIndicator> healthIndicators)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.