public class CouchbaseHealthIndicator extends AbstractHealthIndicator
HealthIndicator for Couchbase.| Constructor and Description |
|---|
CouchbaseHealthIndicator(org.springframework.data.couchbase.core.CouchbaseOperations couchbaseOperations,
Duration timeout)
Create an indicator with the specified
CouchbaseOperations and
timeout. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doHealthCheck(Health.Builder builder)
Actual health check logic.
|
healthpublic CouchbaseHealthIndicator(org.springframework.data.couchbase.core.CouchbaseOperations couchbaseOperations,
Duration timeout)
CouchbaseOperations and
timeout.couchbaseOperations - the couchbase operationstimeout - the request timeoutprotected 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 © 2018 Pivotal Software, Inc.. All rights reserved.