@Configuration @ConditionalOnClass(value={org.springframework.data.couchbase.core.CouchbaseOperations.class,com.couchbase.client.java.Bucket.class}) @ConditionalOnBean(value=org.springframework.data.couchbase.core.CouchbaseOperations.class) @ConditionalOnEnabledHealthIndicator(value="couchbase") @AutoConfigureBefore(value=HealthIndicatorAutoConfiguration.class) @AutoConfigureAfter(value=CouchbaseDataAutoConfiguration.class) @EnableConfigurationProperties(value=CouchbaseHealthIndicatorProperties.class) public class CouchbaseHealthIndicatorAutoConfiguration extends CompositeHealthIndicatorConfiguration<CouchbaseHealthIndicator,org.springframework.data.couchbase.core.CouchbaseOperations>
Constructor and Description |
---|
CouchbaseHealthIndicatorAutoConfiguration(Map<String,org.springframework.data.couchbase.core.CouchbaseOperations> couchbaseOperations,
CouchbaseHealthIndicatorProperties properties) |
Modifier and Type | Method and Description |
---|---|
HealthIndicator |
couchbaseHealthIndicator() |
protected CouchbaseHealthIndicator |
createHealthIndicator(org.springframework.data.couchbase.core.CouchbaseOperations couchbaseOperations) |
createHealthIndicator
public CouchbaseHealthIndicatorAutoConfiguration(Map<String,org.springframework.data.couchbase.core.CouchbaseOperations> couchbaseOperations, CouchbaseHealthIndicatorProperties properties)
@Bean @ConditionalOnMissingBean(name="couchbaseHealthIndicator") public HealthIndicator couchbaseHealthIndicator()
protected CouchbaseHealthIndicator createHealthIndicator(org.springframework.data.couchbase.core.CouchbaseOperations couchbaseOperations)
createHealthIndicator
in class CompositeHealthIndicatorConfiguration<CouchbaseHealthIndicator,org.springframework.data.couchbase.core.CouchbaseOperations>
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.