Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated ServerAddress methods #1224

Merged
merged 4 commits into from
Oct 21, 2023
Merged

Remove deprecated ServerAddress methods #1224

merged 4 commits into from
Oct 21, 2023

Conversation

jyemin
Copy link
Contributor

@jyemin jyemin commented Oct 17, 2023

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

JAVA-4937

Design Notes:

  • Delete ServerAddressWithResolver and instead push the InetAddressResolver down to the Stream implementations
  • Add internal DefaultInetAddressResolver to replicate the removed ServerAddress method and avoid having to make the resolver nullable everywhere

* ServerAddress#getSocketAddress
* ServerAddress#getSocketAddresses
* UnixServerAddress#getSocketAddress
* UnixServerAddress#getUnixSocketAddress

JAVA-4937
@jyemin jyemin self-assigned this Oct 17, 2023
@jyemin jyemin requested a review from stIncMale October 17, 2023 23:32
Copy link
Contributor Author

@jyemin jyemin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jyemin jyemin requested a review from stIncMale October 20, 2023 19:36
Copy link
Member

@stIncMale stIncMale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving, but the patch you linked has failed.

@jyemin
Copy link
Contributor Author

jyemin commented Oct 21, 2023

@jyemin jyemin merged commit a42f1c8 into mongodb:5.x Oct 21, 2023
@jyemin jyemin deleted the j4937 branch October 21, 2023 00:38
jyemin added a commit that referenced this pull request Dec 4, 2023
* ServerAddress#getSocketAddress
* ServerAddress#getSocketAddresses
* UnixServerAddress#getSocketAddress
* UnixServerAddress#getUnixSocketAddress

JAVA-4937
jyemin added a commit that referenced this pull request Dec 5, 2023
* ServerAddress#getSocketAddress
* ServerAddress#getSocketAddresses
* UnixServerAddress#getSocketAddress
* UnixServerAddress#getUnixSocketAddress

JAVA-4937
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants