@InterfaceStability.Uncommitted @InterfaceAudience.Private public class BucketFlusher extends Object
Helper class to flush a bucket properly and wait for it to be completed.
Modifier and Type | Method and Description |
---|---|
static rx.Observable<Boolean> |
flush(ClusterFacade core,
String bucket,
String password)
Flush the bucket and make sure flush is complete before completing the observable.
|
static rx.Observable<Boolean> |
flush(ClusterFacade core,
String bucket,
String username,
String password)
Flush the bucket and make sure flush is complete before completing the observable.
|
public static rx.Observable<Boolean> flush(ClusterFacade core, String bucket, String password)
Flush the bucket and make sure flush is complete before completing the observable.
core
- the core reference.bucket
- the bucket to flush.password
- the password of the bucket.public static rx.Observable<Boolean> flush(ClusterFacade core, String bucket, String username, String password)
Flush the bucket and make sure flush is complete before completing the observable.
core
- the core reference.bucket
- the bucket to flush.username
- the user authorized for the bucket.password
- the password of the user.Copyright © 2015 Couchbase, Inc.