[JAVA-1774] Javadoc that MongoClientOptions.Builder is not thread-safe Created: 21/Apr/15  Updated: 07/Oct/15  Resolved: 05/May/15

Status: Closed
Project: Java Driver
Component/s: Documentation
Affects Version/s: 2.12.1
Fix Version/s: 3.1.0

Type: Improvement Priority: Minor - P4
Reporter: Alexander Komyagin Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related

 Description   

MongoClientOptions.Builder is not immutable and can be modified by the MongoClientURI constructor. It's not thread-safe.

The javadoc for MongoClientOptions.Builder should be explicit on that.



 Comments   
Comment by Jeffrey Yemin [ 07/Oct/15 ]

Released in 3.1.0

Comment by Githook User [ 05/May/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: Updated MongoClientURI javadoc to emphasize that the constructor that takes a MongoClientOptions.Builder instance takes ownership of that instance.

JAVA-1774
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/69fe6028731d3aac114bca9181f7de8d085b139a

Comment by Githook User [ 05/May/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: Annotated all static inner Builder classes with @NotThreadSafe

JAVA-1774
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/6bd3143b37da9b79bd5e9d72510788dab1b43de2

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