I'm trying to enable/disable bucket flush option using below code and it doesn't work. (SDK 3.0)
public static void main(String... args) {
Cluster cluster = Cluster.connect("host", "user", "password");
cluster.bucket("bucketName").async();
cluster.buckets().getBucket("bucketName").flushEnabled(true);
cluster.buckets().flushBucket("bucketName");
}
Is there any other way to do it? (If i enable the bucket option to flush, i am able to flush the bucket using above code.)