public abstract class AbstractRefresher extends Object implements Refresher
Common implementation for all refreshers.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRefresher(ClusterFacade cluster)
Creates a new
AbstractRefresher. |
| Modifier and Type | Method and Description |
|---|---|
protected ClusterFacade |
cluster()
Returns the cluster reference.
|
Observable<BucketConfig> |
configs()
Returns the
Observable which will push out new configuration updates. |
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. |
Observable<Boolean> |
registerBucket(String name,
String password)
Registers a bucket to be watched for new configurations.
|
protected Map<String,String> |
registrations() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmarkTainted, markUntainted, refresh, shutdownprotected AbstractRefresher(ClusterFacade cluster)
Creates a new AbstractRefresher.
cluster - the cluster reference.public Observable<Boolean> deregisterBucket(String name)
RefresherDe-registers a bucket from watching.
deregisterBucket in interface RefresherObservable otherwise with the cause.public 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 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 © 2016 Couchbase, Inc.. All rights reserved.