public interface ConfigurationProvider
Modifier and Type | Method and Description |
---|---|
Observable<ClusterConfig> |
closeBucket(String name) |
Observable<Boolean> |
closeBuckets() |
ClusterConfig |
config()
Returns the current config or null if not set.
|
Observable<ClusterConfig> |
configs()
Returns an
Observable , which pushes a new ClusterConfig once available. |
Observable<ClusterConfig> |
openBucket(String name,
String password)
Start to fetch a config for the given bucket and also watch for changes, depending on the mechanism used.
|
void |
proposeBucketConfig(String bucket,
String config) |
boolean |
seedHosts(Set<InetAddress> hosts,
boolean shuffle)
Set the initial seed hosts for bootstrap.
|
void |
signalOutdated() |
Observable<ClusterConfig> configs()
Returns an Observable
, which pushes a new ClusterConfig
once available.
ClusterConfig config()
Returns the current config or null if not set.
boolean seedHosts(Set<InetAddress> hosts, boolean shuffle)
Set the initial seed hosts for bootstrap.
This should only be done as long as the ConfigurationProvider
is not bootstrapped, otherwise it might be ignored.
hosts
- list of seed hosts.shuffle
- shuffle seed host list.Observable<ClusterConfig> openBucket(String name, String password)
Start to fetch a config for the given bucket and also watch for changes, depending on the mechanism used.
name
- the name of the bucket.password
- the name of the password.Observable<ClusterConfig> closeBucket(String name)
Observable<Boolean> closeBuckets()
void signalOutdated()
Copyright © 2016 Couchbase, Inc.. All rights reserved.