public abstract class AbstractRefresher extends Object implements Refresher
Common implementation for all refreshers.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRefresher(CoreEnvironment env,
ClusterFacade cluster)
Creates a new
AbstractRefresher. |
| Modifier and Type | Method and Description |
|---|---|
protected ClusterFacade |
cluster()
Returns the cluster reference.
|
rx.Observable<BucketConfig> |
configs()
Returns the
Observable which will push out new configuration updates. |
rx.Observable<Boolean> |
deregisterBucket(String name)
De-registers a bucket from watching.
|
protected ConfigurationProvider |
provider() |
void |
provider(ConfigurationProvider provider) |
protected void |
pushConfig(String config)
Push a
BucketConfig into the config stream. |
rx.Observable<Boolean> |
registerBucket(String name,
String password)
Registers a bucket to be watched for new configurations.
|
rx.Observable<Boolean> |
registerBucket(String name,
String username,
String password)
Registers a bucket to be watched for new configurations.
|
protected Map<String,com.couchbase.client.core.config.refresher.AbstractRefresher.Credential> |
registrations() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmarkTainted, markUntainted, refresh, shutdownprotected AbstractRefresher(CoreEnvironment env, ClusterFacade cluster)
Creates a new AbstractRefresher.
env - the environmentcluster - the cluster reference.public rx.Observable<Boolean> deregisterBucket(String name)
RefresherDe-registers a bucket from watching.
deregisterBucket in interface RefresherObservable otherwise with the cause.public rx.Observable<Boolean> registerBucket(String name, String password)
RefresherRegisters a bucket to be watched for new configurations.
registerBucket in interface RefresherObservable otherwise with the cause.public rx.Observable<Boolean> registerBucket(String name, String username, String password)
RefresherRegisters a bucket to be watched for new configurations.
registerBucket in interface RefresherObservable otherwise with the cause.public rx.Observable<BucketConfig> configs()
RefresherReturns the Observable which will push out new configuration updates.
protected void pushConfig(String config)
Push a BucketConfig into the config stream.
config - the config to push.protected ClusterFacade cluster()
Returns the cluster reference.
protected ConfigurationProvider provider()
public void provider(ConfigurationProvider provider)
Copyright © 2017 Couchbase, Inc.. All rights reserved.