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) |
CompositeReactiveHealthIndicator(HealthAggregator healthAggregator,
Map<String,ReactiveHealthIndicator> indicators) |
| Modifier and Type | Method and Description |
|---|---|
CompositeReactiveHealthIndicator |
addHealthIndicator(String name,
ReactiveHealthIndicator indicator)
Add a
ReactiveHealthIndicator with the specified name. |
reactor.core.publisher.Mono<Health> |
health()
Provide the indicator of health.
|
CompositeReactiveHealthIndicator |
timeoutStrategy(long timeout,
Health timeoutHealth)
|
public CompositeReactiveHealthIndicator(HealthAggregator healthAggregator)
public CompositeReactiveHealthIndicator(HealthAggregator healthAggregator, Map<String,ReactiveHealthIndicator> indicators)
public CompositeReactiveHealthIndicator addHealthIndicator(String name, ReactiveHealthIndicator indicator)
ReactiveHealthIndicator with the specified name.name - the name of the health indicatorindicator - the health indicator to addpublic CompositeReactiveHealthIndicator timeoutStrategy(long timeout, Health timeoutHealth)
timeout - number of milliseconds to wait before using the
timeoutHealthtimeoutHealth - the Health to use if an health indicator reached the
timeoutpublic reactor.core.publisher.Mono<Health> health()
ReactiveHealthIndicatorhealth in interface ReactiveHealthIndicatorMono that provides the HealthCopyright © 2018 Pivotal Software, Inc.. All rights reserved.