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

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.10.0
    • None
    • API
    • None
    • Fully Compatible

    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

            jeff.yemin@mongodb.com Jeffrey Yemin
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: