@@ -61,6 +61,8 @@ the version after v4.0 including any listed under v4.5.
61
61
Version 5.0 Breaking Changes
62
62
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
63
63
64
+ This driver version introduces the following breaking changes:
65
+
64
66
- Introduces the following changes to the ``ConnectionId`` class:
65
67
66
68
- The ``ConnectionId`` constructor now accepts a value of type ``long`` as its second
@@ -78,15 +80,6 @@ Version 5.0 Breaking Changes
78
80
compatibility, update any source code that uses these methods and rebuild
79
81
your binary.
80
82
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
-
90
83
- The following record annotations from the
91
84
``org.bson.codecs.record.annotations`` package are replaced with
92
85
annotations of the same name from the ``org.bson.codecs.pojo.annotations`` package:
@@ -95,17 +88,16 @@ Version 5.0 Breaking Changes
95
88
- ``BsonProperty``
96
89
- ``BsonRepresentation``
97
90
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
+
104
96
In earlier versions, this parameter is of type ``int`` for both methods. This
105
97
change breaks binary compatibility and requires recompiling, but does not
106
98
require code changes. To view an example that shows how to call
107
99
``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.
109
101
110
102
- Removes the ``Filters.eqFull()`` method, released
111
103
exclusively in ``Beta``, which allowed you
0 commit comments