-
Type: New Feature
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: Configuration
-
None
-
Fully Compatible
-
Not Needed
There is the method MongoClientSettings.Builder.commandListenerList that allows overwriting listeners in a MongoClientSettings.Builder in situations when, for example, the builder was created from a different MongoClientSettings instance as a template. There is no similar method in
- ClusterSettings.Builder for ClusterListener;
- ServerSettings.Builder for ServerListener, ServerMonitorListener;
- ConnectionPoolSettings.Builder for ConnectionPoolListener.
Not only this is inconsistent, but also diminishes the usefulness of the MongoClientSettings.builder(MongoClientSettings) method.