Overview: Making a case for this constructor to be public:
Within the MMS server implementation, we have a use case where MongoDB connections are configured via MongoURIs. And, we have application-specific default options that want to take precedence over the driver defaults.
In the past, this was easy enough since MongoURI and MongoOptions were both mutable. However now that MongoClientURI and MongoClientOptions are both immutable, I'm struggling for how to implement the same behavior without going through a deprecated alternative.
Fwiw, it appears that what I'm looking for exactly is the package private constructor linked above, which would allow me to specify my own set of default options.
(Encountered using 2.11.0-SNAPSHOT at githash 1d2e6faa80aeb5287a26d0348f18f4b51d566759, but looks unchanged on master.)
Thanks!
- is duplicated by
-
JAVA-784 Allow merge of options from URI and options from options class
- Closed