Skip to content

Commit 96156ec

Browse files
authored
DOCSP-32942: Deprecated Methods (mongodb#446)
* DOCSP-32942: Deprecated Methods * review feedback * DOCSP-33241: fix extended JSON example id field (mongodb#447) * DOCSP-33241: fix extended JSON example id field * DOCSP-31694: SOCKS5 proxy support (mongodb#439) * DOCSP-31694: SOCKS5 proxy support * DOCSP-33300: Fix aggregation operator links to the manual (mongodb#448) * DOCSP-32300 Adds compatibility info to landing page (mongodb#449) * DOCSP-31907 Split Event (mongodb#457) * tech review feedback * format * CC feedback * CC feedback pt 2 * DOCSP-31907 - Add paragraph from server docs (mongodb#460) * DOCSP-32942: Deprecated Methods * review feedback * tech review feedback * format * CC feedback * CC feedback pt 2 * build
1 parent 6cf312f commit 96156ec

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

source/whats-new.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,28 @@ What's New in 4.11
7474

7575
.. New features of the 4.11 driver release include:
7676

77+
- The following network address-related methods are deprecated and will be removed
78+
in v5.0:
79+
80+
- The `ServerAddress <{+api+}/apidocs/mongodb-driver-core/com/mongodb/ServerAddress.html>`__
81+
methods ``getSocketAddress()`` and ``getSocketAddresses()``.
82+
83+
Instead of ``getSocketAddress()``, use the ``getByName()`` instance
84+
method of ``java.net.InetAddress``.
85+
86+
Instead of ``getSocketAddresses()``, use the ``getAllByName()`` instance
87+
method of ``java.net.InetAddress``.
88+
89+
- The `UnixServerAddress <{+api+}/apidocs/mongodb-driver-core/com/mongodb/UnixServerAddress.html>`__
90+
method ``getUnixSocketAddress()``.
91+
92+
Instead of ``getUnixSocketAddress()``, construct an instance of
93+
``jnr.unixsocket.UnixSocketAddress``. Pass the full path of the UNIX
94+
socket file to the constructor. By default, MongoDB creates a UNIX
95+
socket file located at ``"/tmp/mongodb-27017.sock"``. To learn more
96+
about the ``UnixSocketAddress``, see the `UnixSocketAddress API documentation
97+
<https://www.javadoc.io/doc/com.github.jnr/jnr-unixsocket/latest/jnr/unixsocket/UnixSocketAddress.html>`__.
98+
7799
.. _version-4.10:
78100

79101
What's New in 4.10

0 commit comments

Comments
 (0)