public class CouchbaseHealthIndicator extends AbstractHealthIndicator
HealthIndicator for Couchbase.| Constructor and Description |
|---|
CouchbaseHealthIndicator(com.couchbase.client.java.Cluster cluster)
Create an indicator with the specified
Cluster. |
CouchbaseHealthIndicator(org.springframework.data.couchbase.core.CouchbaseOperations couchbaseOperations)
Deprecated.
as of 2.0.5 in favour of
CouchbaseHealthIndicator(CouchbaseOperations, Duration) |
CouchbaseHealthIndicator(org.springframework.data.couchbase.core.CouchbaseOperations couchbaseOperations,
Duration timeout)
Deprecated.
since 2.0.6 in favour of
CouchbaseHealthIndicator(Cluster) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doHealthCheck(Health.Builder builder)
Actual health check logic.
|
health@Deprecated public CouchbaseHealthIndicator(org.springframework.data.couchbase.core.CouchbaseOperations couchbaseOperations, Duration timeout)
CouchbaseHealthIndicator(Cluster)CouchbaseOperations and
timeout.couchbaseOperations - the couchbase operationstimeout - the request timeout@Deprecated public CouchbaseHealthIndicator(org.springframework.data.couchbase.core.CouchbaseOperations couchbaseOperations)
CouchbaseHealthIndicator(CouchbaseOperations, Duration)CouchbaseOperations.couchbaseOperations - the couchbase operationspublic CouchbaseHealthIndicator(com.couchbase.client.java.Cluster cluster)
Cluster.cluster - the Couchbase Clusterprotected void doHealthCheck(Health.Builder builder) throws Exception
AbstractHealthIndicatordoHealthCheck in class AbstractHealthIndicatorbuilder - the Health.Builder to report health status and detailsException - any Exception that should create a Status.DOWN
system status.Copyright © 2019 Pivotal Software, Inc.. All rights reserved.