[JAVA-1596] Resolve difference between database/collection options classes in sync and async APIs Created: 12/Dec/14  Updated: 31/Mar/15  Resolved: 12/Jan/15

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: None
Fix Version/s: 3.0.0

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


 Description   

async uses OperationOptions
sync uses MongoDatabaseOptions/MongoCollectionOptions

no good reason.



 Comments   
Comment by Jeffrey Yemin [ 31/Mar/15 ]

Closing all resolved 3.0.0 issues, as 3.0.0 has been tagged and released.

Comment by Githook User [ 30/Jan/15 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Removed separate options classes

Inlined the options for MongoDatabase and MongoCollection

JAVA-1596
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/75b8ea08349554594fc0538bfa179af27a317def

Comment by Githook User [ 12/Jan/15 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Removed separate options classes

Inlined the options for MongoDatabase and MongoCollection

JAVA-1596
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/75b8ea08349554594fc0538bfa179af27a317def

Comment by Jeffrey Yemin [ 08/Jan/15 ]

Another idea: get rid of all the options classes and just add methods for each one that return a new instance, e.g

class MongoDatabase {
MongoDatabase withReadPreference(ReadPreference);
MongoDatabase withWriteConcern(WriteConcern);
}

etc.

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