[JAVA-2166] Make it easier to mix ConnectionString settings with MongoClientSettings Created: 04/Apr/16 Updated: 02/Feb/18 Resolved: 02/Feb/18 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Async, Configuration |
| Affects Version/s: | None |
| Fix Version/s: | 3.7.0 |
| Type: | New Feature | Priority: | Minor - P4 |
| Reporter: | Ross Lawley | Assignee: | Ross Lawley |
| Resolution: | Done | Votes: | 2 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
Currently, mixing settings is extremely verbose compared to MongoClientURI. A recent example is a user (SCALA-243) wanting to set the serverSelectionTimeoutMS in the Scala driver is:
Which is very verbose compared to the Sync driver:
|
| Comments |
| Comment by Githook User [ 02/Feb/18 ] |
|
Author: {'email': 'ross.lawley@gmail.com', 'name': 'Ross Lawley', 'username': 'rozza'}Message: Improved MongoClientSetting configurability Added com.mongodb.MongoClientSettings
|
| Comment by Mark Paluch [ 17/Jul/17 ] |
|
+1 for ReactiveStreams/RxJava-based drivers. In our case we're overriding only the streamFactoryFactory. MongoClientSettings initialization from ConnectionString would be a good fit, something like MongoClientSettings.builder(ConnectionString). |