[JAVA-744] Add convenience methods for MongoClientOptions Created: 25/Jan/13  Updated: 19/Mar/13  Resolved: 05/Mar/13

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: 2.10.0, 2.10.1
Fix Version/s: 2.11.0

Type: Improvement Priority: Major - P3
Reporter: Stephen Lee Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

See https://groups.google.com/forum/#!topic/mongodb-user/fJF4Nrayi2c.

We need a few things:

  1. MongoClient.getMongoClientOptions()
  2. MongoClientOptions.builder()
  3. MongoClientOptions equals and hash code


 Comments   
Comment by auto [ 05/Mar/13 ]

Author:

{u'date': u'2013-02-27T15:58:07Z', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-744: Added MongoClient.getMongoClientOptions
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/461c9b8f2956a060ba889234aa78259fdeb62156

Comment by auto [ 05/Mar/13 ]

Author:

{u'date': u'2013-02-27T15:52:02Z', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-744: Added MongoClientOptions equals and hashCode methods
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/0d3b964020e9d2bddda70b6ce5f928c5bf19900a

Comment by auto [ 05/Mar/13 ]

Author:

{u'date': u'2013-02-27T15:45:41Z', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-744: Added MongoClientOptions.builder() static convenience method.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/a65a4deaa456630653b772374d5bad770ce55afd

Comment by Jeffrey Yemin [ 25/Jan/13 ]

yes, it will require a different method name, since MongoClientOptions does not extend MongoOptions. We will preserve backwards compatibility.

Comment by Rick Curtis [ 25/Jan/13 ]

Is this going to be fixed in the 2.10.x stream? If so, you'll need to add getMongoClientOptions() rather than changing the existing getMongoOptions() method to return a different type.

Generated at Thu Feb 08 08:52:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.