@@ -61,6 +61,23 @@ the version after v4.0 including any listed under v4.5.
61
61
Version 5.0 Breaking Changes
62
62
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
63
63
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
+
64
81
- Changes the data type of the timeout duration parameter in the
65
82
``SocketSettings.Builder.connectTimeout()`` and ``SocketSettings.Builder.readTimeout()``
66
83
methods. The data type of this parameter is now ``long`` instead of ``int``.
@@ -233,22 +250,6 @@ Version 5.0 Breaking Changes
233
250
the error labels included in the ``MongoException`` object that contains the
234
251
``WriteConcernError``.
235
252
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
-
252
253
.. _java-breaking-changes-v4.8:
253
254
254
255
Version 4.8 Breaking Changes
0 commit comments