public class HttpRefresher extends AbstractRefresher
Keeps the bucket config fresh through a HTTP streaming connection.
Constructor and Description |
---|
HttpRefresher(CoreEnvironment env,
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.
|
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.
|
rx.Observable<Boolean> |
shutdown()
Shuts down all open registration streams.
|
cluster, configs, deregisterBucket, provider, provider, pushConfig, registrations
public HttpRefresher(CoreEnvironment env, ClusterFacade cluster)
public rx.Observable<Boolean> registerBucket(String name, String password)
Refresher
Registers a bucket to be watched for new configurations.
registerBucket
in interface Refresher
registerBucket
in class AbstractRefresher
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
registerBucket
in class AbstractRefresher
Observable
otherwise with the cause.public rx.Observable<Boolean> shutdown()
Refresher
Shuts down all open registration streams.
Observable
otherwise with the cause.public void markTainted(BucketConfig config)
Refresher
Marks the given bucket as tainted.
config
- the config of the bucket that should be marked.public void markUntainted(BucketConfig config)
Refresher
Mark the given bucket as not tainted.
config
- the config of the bucket that should not be marked anymore.public void refresh(ClusterConfig config)
Refresher
If pull based, refresh configs for registered buckets.
Copyright © 2017 Couchbase, Inc.. All rights reserved.