Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-682

Add MongoClient class, to supersede existing Mongo class, with a default WriteConcern.ACKNOWLEDGED

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.10.0
    • Component/s: API
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • # Replies:
      8
    • Last comment by Customer:
      true

      Description

      Add a new class MongoClient with a default write concern of WriteConcern.ACKNOWLEDGED. Users of the Java driver should construct MongoClient instances in preference to Mongo instances.

      To ease migration, MongoClient will extend the existing Mongo class. In order to ensure that the default write concern is always ACKNOWLEDGED, new companion classes, MongoClientOptions and MongoClientURI, will also be added.

      MongoClientOptions differs from MongoOptions in that all fields will be final (and private), making it immutable. Instances of MongoClientOptions will be constructed with a static inner Builder class. MongoClientOptions will have a default write concern of WriteConcern.ACKNOWLEDGED.

        Attachments

          Activity

            People

            • Assignee:
              jeff.yemin Jeff Yemin
              Reporter:
              jeff.yemin Jeff Yemin
              Participants:
              Last commenter:
              Rathi Gnanasekaran
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:
                Days since reply:
                4 years, 47 weeks, 6 days ago
                Date of 1st Reply: