public class CompositeReactiveHealthIndicator extends Object implements ReactiveHealthIndicator
ReactiveHealthIndicator
that returns health indications from all registered
delegates. Provides an alternative Health
for a delegate that reaches a
configurable timeout.Constructor and Description |
---|
CompositeReactiveHealthIndicator(HealthAggregator healthAggregator)
Deprecated.
since 2.1.0 in favor of
CompositeReactiveHealthIndicator(HealthAggregator, ReactiveHealthIndicatorRegistry) |
CompositeReactiveHealthIndicator(HealthAggregator healthAggregator,
Map<String,ReactiveHealthIndicator> indicators)
Deprecated.
since 2.1.0 in favor of
CompositeReactiveHealthIndicator(HealthAggregator, ReactiveHealthIndicatorRegistry) |
CompositeReactiveHealthIndicator(HealthAggregator healthAggregator,
ReactiveHealthIndicatorRegistry registry)
Create a new
CompositeReactiveHealthIndicator from the indicators in the
given registry . |
Modifier and Type | Method and Description |
---|---|
CompositeReactiveHealthIndicator |
addHealthIndicator(String name,
ReactiveHealthIndicator indicator)
Deprecated.
since 2.1.0 in favor of
ReactiveHealthIndicatorRegistry.register(String, ReactiveHealthIndicator) |
reactor.core.publisher.Mono<Health> |
health()
Provide the indicator of health.
|
CompositeReactiveHealthIndicator |
timeoutStrategy(long timeout,
Health timeoutHealth)
|
@Deprecated public CompositeReactiveHealthIndicator(HealthAggregator healthAggregator)
CompositeReactiveHealthIndicator(HealthAggregator, ReactiveHealthIndicatorRegistry)
CompositeReactiveHealthIndicator
.healthAggregator
- the health aggregator@Deprecated public CompositeReactiveHealthIndicator(HealthAggregator healthAggregator, Map<String,ReactiveHealthIndicator> indicators)
CompositeReactiveHealthIndicator(HealthAggregator, ReactiveHealthIndicatorRegistry)
CompositeReactiveHealthIndicator
from the specified
indicators.healthAggregator
- the health aggregatorindicators
- a map of HealthIndicators
with
the key being used as an indicator name.public CompositeReactiveHealthIndicator(HealthAggregator healthAggregator, ReactiveHealthIndicatorRegistry registry)
CompositeReactiveHealthIndicator
from the indicators in the
given registry
.healthAggregator
- the health aggregatorregistry
- the registry of HealthIndicators
.@Deprecated public CompositeReactiveHealthIndicator addHealthIndicator(String name, ReactiveHealthIndicator indicator)
ReactiveHealthIndicatorRegistry.register(String, ReactiveHealthIndicator)
ReactiveHealthIndicator
with the specified name.name
- the name of the health indicatorindicator
- the health indicator to addIllegalStateException
- if an indicator with the given name
is
already registered.public CompositeReactiveHealthIndicator timeoutStrategy(long timeout, Health timeoutHealth)
timeout
- number of milliseconds to wait before using the
timeoutHealth
timeoutHealth
- the Health
to use if an health indicator reached the
timeout
public reactor.core.publisher.Mono<Health> health()
ReactiveHealthIndicator
health
in interface ReactiveHealthIndicator
Mono
that provides the Health
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.