public abstract class AbstractReactiveHealthIndicator extends Object implements ReactiveHealthIndicator
ReactiveHealthIndicator
implementations that encapsulates creation of
Health
instance and error handling.Modifier | Constructor and Description |
---|---|
protected |
AbstractReactiveHealthIndicator()
Create a new
AbstractReactiveHealthIndicator instance with a default
healthCheckFailedMessage . |
protected |
AbstractReactiveHealthIndicator(Function<Throwable,String> healthCheckFailedMessage)
Create a new
AbstractReactiveHealthIndicator instance with a specific
message to log when the health check fails. |
protected |
AbstractReactiveHealthIndicator(String healthCheckFailedMessage)
Create a new
AbstractReactiveHealthIndicator instance with a specific
message to log when the health check fails. |
Modifier and Type | Method and Description |
---|---|
protected abstract reactor.core.publisher.Mono<Health> |
doHealthCheck(Health.Builder builder)
Actual health check logic.
|
reactor.core.publisher.Mono<Health> |
health()
Provide the indicator of health.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHealth
adapt
protected AbstractReactiveHealthIndicator()
AbstractReactiveHealthIndicator
instance with a default
healthCheckFailedMessage
.protected AbstractReactiveHealthIndicator(String healthCheckFailedMessage)
AbstractReactiveHealthIndicator
instance with a specific
message to log when the health check fails.healthCheckFailedMessage
- the message to log on health check failureprotected AbstractReactiveHealthIndicator(Function<Throwable,String> healthCheckFailedMessage)
AbstractReactiveHealthIndicator
instance with a specific
message to log when the health check fails.healthCheckFailedMessage
- the message to log on health check failurepublic final reactor.core.publisher.Mono<Health> health()
ReactiveHealthIndicator
health
in interface ReactiveHealthIndicator
Mono
that provides the Health
protected abstract reactor.core.publisher.Mono<Health> doHealthCheck(Health.Builder builder)
builder
- the Health.Builder
to report health status and detailsMono
that provides the Health
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.