Details
-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
1
-
SDK30
Description
Suggested Release Note
Transaction settings are now configurable using the same callback pattern used by other environment settings. Here's an example of the new syntax:
Cluster cluster = Cluster.connect(
connectionString,
ClusterOptions.clusterOptions(username, password)
.environment(env -> env
.transactionsConfig(txn -> txn
.durabilityLevel(DurabilityLevel.MAJORITY_AND_PERSIST_TO_ACTIVE)
.metadataCollection(someKeyspace)
.queryConfig(query -> query.scanConsistency(QueryScanConsistency.REQUEST_PLUS))
.cleanupConfig(cleanup -> cleanup
.cleanupWindow(Duration.ofSeconds(10))
.addCollection(someOtherKeyspace))
)
)
);
Attachments
For Gerrit Dashboard: JCBC-2157 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
212236,2 | JCBC-2157 Use callbacks for transactions config | master | couchbase-jvm-clients | Status: MERGED | +2 | +1 |