File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff 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
79101What's New in 4.10
You can’t perform that action at this time.
0 commit comments