Class CouchbaseReactiveHealthIndicator
- java.lang.Object
- org.springframework.boot.actuate.health.AbstractReactiveHealthIndicator
- org.springframework.boot.actuate.couchbase.CouchbaseReactiveHealthIndicator
- All Implemented Interfaces:
ReactiveHealthIndicator
public class CouchbaseReactiveHealthIndicator extends AbstractReactiveHealthIndicator
AReactiveHealthIndicator
for Couchbase.- Since:
- 2.1.0
Constructor Summary
Constructors Constructor Description CouchbaseReactiveHealthIndicator(com.couchbase.client.java.Cluster cluster)
Create a newCouchbaseReactiveHealthIndicator
instance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected reactor.core.publisher.Mono<Health>
doHealthCheck(Health.Builder builder)
Actual health check logic.Methods inherited from class org.springframework.boot.actuate.health.AbstractReactiveHealthIndicator
health
Constructor Detail
CouchbaseReactiveHealthIndicator
public CouchbaseReactiveHealthIndicator(com.couchbase.client.java.Cluster cluster)
Create a newCouchbaseReactiveHealthIndicator
instance.- Parameters:
cluster
- the Couchbase cluster
Method Detail
doHealthCheck
protected reactor.core.publisher.Mono<Health> doHealthCheck(Health.Builder builder)
Description copied from class:AbstractReactiveHealthIndicator
Actual health check logic. If an error occurs in the pipeline it will be handled automatically.- Specified by:
doHealthCheck
in classAbstractReactiveHealthIndicator
- Parameters:
builder
- theHealth.Builder
to report health status and details- Returns:
- a
Mono
that provides theHealth