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

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.10.0
    • Affects Version/s: None
    • Component/s: API
    • None
    • Fully Compatible

      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.

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

              Created:
              Updated:
              Resolved: