public class HttpRefresher extends AbstractRefresher
Keeps the bucket config fresh through a HTTP streaming connection.
| Constructor and Description |
|---|
HttpRefresher(ClusterFacade cluster) |
| Modifier and Type | Method and Description |
|---|---|
void |
markTainted(BucketConfig config)
Marks the given bucket as tainted.
|
void |
markUntainted(BucketConfig config)
Mark the given bucket as not tainted.
|
void |
refresh(ClusterConfig config)
If pull based, refresh configs for registered buckets.
|
Observable<Boolean> |
registerBucket(String name,
String password)
Registers a bucket to be watched for new configurations.
|
Observable<Boolean> |
shutdown()
Shuts down all open registration streams.
|
cluster, configs, deregisterBucket, provider, provider, pushConfig, registrationspublic HttpRefresher(ClusterFacade cluster)
public Observable<Boolean> registerBucket(String name, String password)
RefresherRegisters a bucket to be watched for new configurations.
registerBucket in interface RefresherregisterBucket in class AbstractRefresherObservable otherwise with the cause.public Observable<Boolean> shutdown()
RefresherShuts down all open registration streams.
Observable otherwise with the cause.public void markTainted(BucketConfig config)
RefresherMarks the given bucket as tainted.
config - the config of the bucket that should be marked.public void markUntainted(BucketConfig config)
RefresherMark the given bucket as not tainted.
config - the config of the bucket that should not be marked anymore.public void refresh(ClusterConfig config)
RefresherIf pull based, refresh configs for registered buckets.
Copyright © 2016 Couchbase, Inc.. All rights reserved.