Skip to content

Commit 640a8f4

Browse files
committed
tweak
1 parent d9c91c7 commit 640a8f4

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

source/upgrade.txt

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

64+
- Introduces the following changes to the ``ConnectionId`` class:
65+
66+
- The ``ConnectionId`` constructor now accepts a value of type ``long`` as its second
67+
parameter instead of type ``int``. Similarly, the constructor now accepts a value of
68+
type ``Long`` as its third parameter instead of type ``Integer``. Because this change breaks
69+
binary compatibility, recompile any existing code that calls the ``ConnectionId`` constructor.
70+
71+
- The ``withServerValue()`` method now accepts a parameter of type ``long`` rather than
72+
type ``int``. This change breaks binary compatibility, so you must recompile any code
73+
that calls the ``withServerValue()`` method.
74+
75+
- The ``getServerValue()`` method now returns a value of type ``Long`` instead of type
76+
``Integer``. Similarly, the ``getLocalValue()`` method returns a value of type
77+
``long`` instead of type ``int``. Because this change breaks both binary and source
78+
compatibility, update any source code that uses these methods and rebuild
79+
your binary.
80+
6481
- Changes the data type of the timeout duration parameter in the
6582
``SocketSettings.Builder.connectTimeout()`` and ``SocketSettings.Builder.readTimeout()``
6683
methods. The data type of this parameter is now ``long`` instead of ``int``.
@@ -233,22 +250,6 @@ Version 5.0 Breaking Changes
233250
the error labels included in the ``MongoException`` object that contains the
234251
``WriteConcernError``.
235252

236-
- Introduces the following changes to the ``ConnectionId`` class:
237-
238-
- The ``ConnectionId`` constructor now accepts a value of type ``long`` as its second
239-
parameter instead of type ``int``. Similarly, the constructor now accepts a value of
240-
type ``Long`` as its third parameter instead of type ``Integer``. Because this change breaks
241-
binary compatibility, recompile any existing code that calls the ``ConnectionId`` constructor.
242-
243-
- The ``withServerValue()`` method now accepts a parameter of type ``long`` rather than
244-
type ``int``. This change breaks binary compatibility, so you must recompile any code
245-
that calls the ``withServerValue()`` method.
246-
247-
- The ``getServerValue()`` method now returns a value of type ``Long`` instead of type
248-
``Integer``. Similarly, the ``getLocalValue()`` method returns a value of type
249-
``long`` instead of type ``int``. Because this change breaks both binary and source
250-
compatibility, update any source code that uses these methods and rebuild your binary.
251-
252253
.. _java-breaking-changes-v4.8:
253254

254255
Version 4.8 Breaking Changes

0 commit comments

Comments
 (0)