[JAVA-4940] Deprecate SocketAddress-related methods Created: 17/Apr/23  Updated: 28/Oct/23  Resolved: 07/Sep/23

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: None
Fix Version/s: 4.11.0

Type: Improvement Priority: Major - P3
Reporter: Valentin Kavalenka Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
Gantt Dependency
has to be done before JAVA-4937 Remove deprecated ServerAddress methods Closed
Epic Link: Java Driver 5.0 Pre-Work
Quarter: FY24Q3
Backwards Compatibility: Minor Change
Documentation Changes: Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

The following methods are deprecated for removal:

  • ServerAddress#getSocketAddress
  • ServerAddress#getSocketAddresses
  • UnixServerAddress#getUnixSocketAddress

They all have simple replacements using JDK methods



 Comments   
Comment by Githook User [ 07/Sep/23 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Deprecate SocketAddress-related methods (#1188)

  • ServerAddress#getSocketAddress
  • ServerAddress#getSocketAddresses
  • UnixServerAddress#getUnixSocketAddress

JAVA-4940
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/481e793011f8db70efc3b8042bb93860a5dfb686

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