Uploaded image for project: 'Java Couchbase JVM Core'
  1. Java Couchbase JVM Core
  2. JVMCBC-1504

Deprecate config builder static factory methods

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 2.6.1
    • None
    • None
    • None
    • 1
    • SDK12: Scp Fnc, FIT, Misc

    Description

      Suggested Release Note:

      Static methods that return new config builders (like `TimeoutConfig.builder()` and `TimeoutConfig.kvTimeout(Duration)` to name just two) are now deprecated. Here is an example of the recommended way to configure client settings:

      Cluster cluster = Cluster.connect(
        connectionString,
        ClusterOptions.clusterOptions(username, password)
          .environment(env -> env
            .timeoutConfig(timeout -> timeout
              .kvTimeout(Duration.ofSeconds(3))
            )
          )
      );
      


      I believe this primarily affects the Java SDK, and probably doesn't need to be mentioned in the Scala or Kotlin release notes.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            david.nault David Nault
            david.nault David Nault
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty