[JAVA-4317] Allow setting in addition to adding listeners via settings Created: 27/Sep/21  Updated: 28/Oct/23  Resolved: 21/Dec/21

Status: Closed
Project: Java Driver
Component/s: Configuration
Affects Version/s: None
Fix Version/s: 4.5.0

Type: New Feature Priority: Minor - P4
Reporter: Valentin Kavalenka Assignee: Ramasai Tadepalli
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Documentation Changes: Not Needed

 Description   

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

Not only this is inconsistent, but also diminishes the usefulness of the MongoClientSettings.builder(MongoClientSettings) method.



 Comments   
Comment by Githook User [ 21/Dec/21 ]

Author:

{'name': 'Ramasai Tadepalli', 'email': '18359686+ramasai1@users.noreply.github.com', 'username': 'ramasai1'}

Message: Add method to set listeners in ClusterSettings, ServerSettings and ConnectionPoolSettings builders (#839)

JAVA-4317
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/c2590d8a59616b26edcc2668fbdcc9f376868774

Comment by Cloud GitHub Webhooks [ 21/Dec/21 ]

jyemin merged a pull request (JAVA-4317 Add methods to override listeners in ClusterSettings ServerSettings and ConnectionPoolSettings) into the following branch:
master: c2590d8a59616b26edcc2668fbdcc9f376868774

Generated at Thu Feb 08 09:01:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.