@@ -64,13 +64,13 @@ Version 5.0 Breaking Changes
64
64
This driver version introduces the following breaking changes:
65
65
66
66
- Changes the data type of the timeout duration parameter in the
67
- ``SocketSettings.Builder.connectTimeout()`` and ``SocketSettings.Builder.readTimeout()``
68
- methods. The data type of this parameter is now ``long`` instead of ``int``.
69
- To view an
70
- example that shows how to instantiate a ``SocketSettings`` instance by using
71
- these methods, see the :ref:`SocketSettings Example
72
- <java-socketsettings-example>` in the Specify MongoClient Settings
73
- guide .
67
+ ``SocketSettings.Builder.connectTimeout()`` and
68
+ ``SocketSettings.Builder.readTimeout()`` methods. The data type of this
69
+ parameter is now ``long`` instead of ``int``. To view an example that shows
70
+ how to call ``SocketSettings`` methods, see the :ref:`SocketSettings Example
71
+ <java-socketsettings-example>` in the Specify MongoClient Settings guide. This
72
+ change breaks binary compatibility (requires recompiling) but does not require
73
+ code changes .
74
74
75
75
- The ``getServerValue()`` method now returns a value of type ``Long`` instead of type
76
76
``Integer``. Similarly, the ``getLocalValue()`` method returns a value of type
@@ -125,20 +125,20 @@ This driver version introduces the following breaking changes:
125
125
126
126
.. code-block:: java
127
127
128
- ClusterSettings.builder()
129
- .applyConnectionString(new ConnectionString("mongodb://127.0.0.1:27017/?replicaSet=replset"))
130
- .build()
131
- .getMode()
128
+ ClusterSettings.builder()
129
+ .applyConnectionString(new ConnectionString("mongodb://127.0.0.1:27017/?replicaSet=replset"))
130
+ .build()
131
+ .getMode()
132
132
133
133
.. code-block:: java
134
134
135
- ClusterSettings.builder()
136
- .hosts(Collections.singletonList(
135
+ ClusterSettings.builder()
136
+ .hosts(Collections.singletonList(
137
137
new ServerAddress("127.0.0.1", 27017)
138
- ))
139
- .requiredReplicaSetName("replset")
140
- .build()
141
- .getMode()
138
+ ))
139
+ .requiredReplicaSetName("replset")
140
+ .build()
141
+ .getMode()
142
142
143
143
- Changes how ``BsonDecimal128`` values respond to method calls, by
144
144
responding in the same way as ``Decimal128`` values. In particular,
0 commit comments