Skip to content

Remove deprecated ServerAddress methods#1224

Merged
jyemin merged 4 commits into
mongodb:5.xfrom
jyemin:j4937
Oct 21, 2023
Merged

Remove deprecated ServerAddress methods#1224
jyemin merged 4 commits into
mongodb:5.xfrom
jyemin:j4937

Conversation

@jyemin

@jyemin jyemin commented Oct 17, 2023

Copy link
Copy Markdown
Collaborator
  • 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
jyemin and others added 2 commits October 20, 2023 10:33
…ectionPoolAsyncTest.java

Co-authored-by: Valentin Kovalenko <valentin.male.kovalenko@gmail.com>

@jyemin jyemin left a comment

Copy link
Copy Markdown
Collaborator Author

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

@stIncMale stIncMale left a comment

Copy link
Copy Markdown
Member

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

jyemin commented Oct 21, 2023

Copy link
Copy Markdown
Collaborator Author

@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