[JAVA-2887] Need ability to get the settings from the client Created: 14/Jun/18 Updated: 20/Nov/18 Resolved: 20/Nov/18 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API, Configuration |
| Affects Version/s: | 3.7.0 |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | James Kleeh | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Description |
|
The newly deprecated method http://mongodb.github.io/mongo-java-driver-reactivestreams/1.8/javadoc/com/mongodb/reactivestreams/client/MongoClient.html#getSettings-- has no replacement and thus causes a problem for me. It is useful to be able to retrieve the settings from the client if you are receiving clients from sources where you did not create the client. Please provide another way to retrieve this information. Thanks! |
| Comments |
| Comment by Ross Lawley [ 20/Nov/18 ] |
|
Hi schlogen, Thanks for the ticket. At the moment there are no plans for a replacement, this mirrors the deprecations from the other MongoClient interfaces in the driver and the async driver. Part of the reasoning is the expanded number of ways to create a MongoClient. For example the embedded driver requires extra custom settings and doesn't require all the settings from the MongoClientSettings. It is recommended should the settings be required post construction of the MongoClient any providers should also keep the MongoClientSettings available for inspection. For the above reasons I'm closing this ticket as "Won't Fix". Should you or others feel that it must be included in the API, please comment on this ticket. If there is enough support then this decision can be reviewed. Ross |