@Configuration public class CouchbaseConfiguration extends Object
CouchbaseProperties
.Constructor and Description |
---|
CouchbaseConfiguration(CouchbaseProperties properties) |
Modifier and Type | Method and Description |
---|---|
com.couchbase.client.java.Bucket |
couchbaseClient() |
com.couchbase.client.java.Cluster |
couchbaseCluster() |
com.couchbase.client.java.cluster.ClusterInfo |
couchbaseClusterInfo() |
com.couchbase.client.java.env.DefaultCouchbaseEnvironment |
couchbaseEnvironment() |
protected List<String> |
determineBootstrapHosts()
Determine the Couchbase nodes to bootstrap from.
|
protected com.couchbase.client.java.env.DefaultCouchbaseEnvironment.Builder |
initializeEnvironmentBuilder(CouchbaseProperties properties)
Initialize an environment builder based on the specified settings.
|
public CouchbaseConfiguration(CouchbaseProperties properties)
@Bean @Primary public com.couchbase.client.java.env.DefaultCouchbaseEnvironment couchbaseEnvironment()
protected List<String> determineBootstrapHosts()
@Bean @Primary @DependsOn(value="couchbaseClient") public com.couchbase.client.java.cluster.ClusterInfo couchbaseClusterInfo()
protected com.couchbase.client.java.env.DefaultCouchbaseEnvironment.Builder initializeEnvironmentBuilder(CouchbaseProperties properties)
properties
- the couchbase properties to useDefaultCouchbaseEnvironment
builder.Copyright © 2021 Pivotal Software, Inc.. All rights reserved.