Details
-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
1
Description
This is a simple quality of life improvement if a user only needs to execute a handful of operations we can perform the disconnect operation on behalf of them. This enables try-with-resource like this:
try (Cluster cluster = Cluster.connect("127.0.0.1", "user", "password")) {
|
Bucket bucket = cluster.bucket("travel-sample");
|
bucket.waitUntilReady(Duration.ofSeconds(10));
|
}
|
Attachments
For Gerrit Dashboard: JCBC-1989 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
178538,2 | JCBC-1989: Enable try-with-resources for Cluster | master | couchbase-jvm-clients | Status: MERGED | +2 | +1 |