Class CouchbaseReactiveHealthIndicator
java.lang.Object
org.springframework.boot.actuate.health.AbstractReactiveHealthIndicator
org.springframework.boot.actuate.couchbase.CouchbaseReactiveHealthIndicator
- All Implemented Interfaces:
ReactiveHealthContributor,ReactiveHealthIndicator
A
ReactiveHealthIndicator for Couchbase.- Since:
- 2.1.0
- Author:
- Mikalai Lushchytski, Stephane Nicoll
-
Constructor Summary
ConstructorsConstructorDescriptionCouchbaseReactiveHealthIndicator(com.couchbase.client.java.Cluster cluster) Create a newCouchbaseReactiveHealthIndicatorinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected reactor.core.publisher.Mono<Health>doHealthCheck(Health.Builder builder) Actual health check logic.Methods inherited from class org.springframework.boot.actuate.health.AbstractReactiveHealthIndicator
healthMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.boot.actuate.health.ReactiveHealthIndicator
getHealth
-
Constructor Details
-
CouchbaseReactiveHealthIndicator
public CouchbaseReactiveHealthIndicator(com.couchbase.client.java.Cluster cluster) Create a newCouchbaseReactiveHealthIndicatorinstance.- Parameters:
cluster- the Couchbase cluster
-
-
Method Details
-
doHealthCheck
Description copied from class:AbstractReactiveHealthIndicatorActual health check logic. If an error occurs in the pipeline, it will be handled automatically.- Specified by:
doHealthCheckin classAbstractReactiveHealthIndicator- Parameters:
builder- theHealth.Builderto report health status and details- Returns:
- a
Monothat provides theHealth
-