[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)
|
| 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: |