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, wait
markTainted, markUntainted, refresh, shutdown
protected AbstractRefresher(CoreEnvironment env, ClusterFacade cluster)
Creates a new AbstractRefresher
.
env
- the environmentcluster
- the cluster reference.public rx.Observable<Boolean> deregisterBucket(String name)
Refresher
De-registers a bucket from watching.
deregisterBucket
in interface Refresher
Observable
otherwise with the cause.public rx.Observable<Boolean> registerBucket(String name, String password)
Refresher
Registers a bucket to be watched for new configurations.
registerBucket
in interface Refresher
Observable
otherwise with the cause.public rx.Observable<Boolean> registerBucket(String name, String username, String password)
Refresher
Registers a bucket to be watched for new configurations.
registerBucket
in interface Refresher
Observable
otherwise with the cause.public rx.Observable<BucketConfig> configs()
Refresher
Returns 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.