Class CouchbaseHealthIndicator
java.lang.Object
org.springframework.boot.health.contributor.AbstractHealthIndicator
org.springframework.boot.couchbase.health.CouchbaseHealthIndicator
- All Implemented Interfaces:
HealthContributor, HealthIndicator
HealthIndicator for Couchbase.- Since:
- 4.0.0
- Author:
- EddĂș MelĂ©ndez, Stephane Nicoll
-
Constructor Summary
ConstructorsConstructorDescriptionCouchbaseHealthIndicator(com.couchbase.client.java.Cluster cluster) Create an indicator with the specifiedCluster. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoHealthCheck(Health.Builder builder) Actual health check logic.Methods inherited from class AbstractHealthIndicator
healthMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HealthIndicator
health
-
Constructor Details
-
CouchbaseHealthIndicator
public CouchbaseHealthIndicator(com.couchbase.client.java.Cluster cluster) Create an indicator with the specifiedCluster.- Parameters:
cluster- the Couchbase Cluster
-
-
Method Details
-
doHealthCheck
Description copied from class:AbstractHealthIndicatorActual health check logic.- Specified by:
doHealthCheckin classAbstractHealthIndicator- Parameters:
builder- theHealth.Builderto report health status and details- Throws:
Exception- anyExceptionthat should create aStatus.DOWNsystem status.
-