public interface ConfigurationProvider
Modifier and Type | Method and Description |
---|---|
rx.Observable<ClusterConfig> |
closeBucket(java.lang.String name) |
rx.Observable<java.lang.Boolean> |
closeBuckets() |
ClusterConfig |
config()
Returns the current config or null if not set.
|
rx.Observable<ClusterConfig> |
configs()
Returns an
Observable , which pushes a new ClusterConfig once available. |
rx.Observable<ClusterConfig> |
openBucket(java.lang.String name,
java.lang.String password)
Start to fetch a config for the given bucket and also watch for changes, depending on the mechanism used.
|
void |
proposeBucketConfig(java.lang.String bucket,
java.lang.String config) |
boolean |
seedHosts(java.util.Set<java.net.InetAddress> hosts,
boolean shuffle)
Set the initial seed hosts for bootstrap.
|
void |
signalOutdated() |
rx.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(java.util.Set<java.net.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.rx.Observable<ClusterConfig> openBucket(java.lang.String name, java.lang.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.rx.Observable<ClusterConfig> closeBucket(java.lang.String name)
rx.Observable<java.lang.Boolean> closeBuckets()
void proposeBucketConfig(java.lang.String bucket, java.lang.String config)
void signalOutdated()