Skip to content

Commit 6077d96

Browse files
committed
tweak
1 parent 640a8f4 commit 6077d96

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

source/upgrade.txt

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ the version after v4.0 including any listed under v4.5.
6161
Version 5.0 Breaking Changes
6262
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6363

64+
This driver version introduces the following breaking changes:
65+
6466
- Introduces the following changes to the ``ConnectionId`` class:
6567

6668
- The ``ConnectionId`` constructor now accepts a value of type ``long`` as its second
@@ -78,15 +80,6 @@ Version 5.0 Breaking Changes
7880
compatibility, update any source code that uses these methods and rebuild
7981
your binary.
8082

81-
- Changes the data type of the timeout duration parameter in the
82-
``SocketSettings.Builder.connectTimeout()`` and ``SocketSettings.Builder.readTimeout()``
83-
methods. The data type of this parameter is now ``long`` instead of ``int``.
84-
To view an
85-
example that shows how to instantiate a ``SocketSettings`` instance by using
86-
these methods, see the :ref:`SocketSettings Example
87-
<java-socketsettings-example>` in the Specify MongoClient Settings
88-
guide.
89-
9083
- The following record annotations from the
9184
``org.bson.codecs.record.annotations`` package are replaced with
9285
annotations of the same name from the ``org.bson.codecs.pojo.annotations`` package:
@@ -95,17 +88,16 @@ Version 5.0 Breaking Changes
9588
- ``BsonProperty``
9689
- ``BsonRepresentation``
9790

98-
- You must pass a timeout duration, which is the first parameter, to the
99-
following ``SocketSettings`` builder methods as a ``long`` type:
100-
101-
- ``connectTimeout()``
102-
- ``readTimeout()``
103-
91+
- Changes the data type of the timeout duration parameter in the
92+
``SocketSettings.Builder.connectTimeout()`` and
93+
``SocketSettings.Builder.readTimeout()`` methods. The data type of this
94+
parameter is now ``long`` instead of ``int``.
95+
10496
In earlier versions, this parameter is of type ``int`` for both methods. This
10597
change breaks binary compatibility and requires recompiling, but does not
10698
require code changes. To view an example that shows how to call
10799
``SocketSettings`` methods, see the :ref:`SocketSettings Example
108-
<java-socketsettings-example>` in the Specify MongoClient Settings guide.
100+
<java-socketsettings-example>` in the Specify MongoClient Settings guide.
109101

110102
- Removes the ``Filters.eqFull()`` method, released
111103
exclusively in ``Beta``, which allowed you

0 commit comments

Comments
 (0)