@@ -64,7 +64,7 @@ Version 5.0 Breaking Changes
64
64
This driver version introduces the following breaking changes:
65
65
66
66
- Introduces the following changes to the ``ConnectionId`` class:
67
-
67
+
68
68
- The ``ConnectionId`` constructor now accepts a value of type ``long`` as its second
69
69
parameter instead of type ``int``. Similarly, the constructor now accepts a value of
70
70
type ``Long`` as its third parameter instead of type ``Integer``. Because this change breaks
@@ -92,7 +92,7 @@ This driver version introduces the following breaking changes:
92
92
``SocketSettings.Builder.connectTimeout()`` and
93
93
``SocketSettings.Builder.readTimeout()`` methods. The data type of this
94
94
parameter is now ``long`` instead of ``int``.
95
-
95
+
96
96
In earlier versions, this parameter is of type ``int`` for both methods. This
97
97
change breaks binary compatibility and requires recompiling, but does not
98
98
require code changes. To view an example that shows how to call
@@ -117,7 +117,7 @@ This driver version introduces the following breaking changes:
117
117
converts automatically to ``org.mongodb.scala.SingleObservable[Void]``. The
118
118
API also exposes ``org.mongodb.scala.Observable[Unit]`` instead of
119
119
``org.mongodb.scala.Observable[Void]``.
120
-
120
+
121
121
For more information, see the `Observable trait in the Scala API documentation
122
122
<https://mongodb.github.io/mongo-java-driver/5.0/apidocs/mongo-scala-driver/org/mongodb/scala/Observable.html>`__.
123
123
@@ -151,7 +151,7 @@ This driver version introduces the following breaking changes:
151
151
responding in the same way as ``Decimal128`` values. In particular,
152
152
``BsonDecimal128.isNumber()`` now returns ``true``, and
153
153
``BsonDecimal128.asNumber()`` returns the equivalent ``BsonNumber``.
154
-
154
+
155
155
- Removes the `ServerAddress <{+api+}/apidocs/mongodb-driver-core/com/mongodb/ServerAddress.html>`__
156
156
methods ``getSocketAddress()`` and ``getSocketAddresses()``.
157
157
@@ -184,12 +184,12 @@ This driver version introduces the following breaking changes:
184
184
- Removes the ``DBCollection.getStats()`` and ``DBCollection.isCapped()``
185
185
helper methods for the ``collStats`` command. Instead of these methods, you can use the
186
186
``$collStats`` aggregation pipeline stage. For an example of how to use this pipeline
187
- stage, see :manual:`What's New <java-deprecations- 4.11>` for v4.11 of the {+driver-short+}.
187
+ stage, see :ref:`<version- 4.11>` for the {+driver-short+}.
188
188
189
189
- Removes the ``MapCodec`` and ``IterableCodec`` classes.
190
190
Instead of ``MapCodec``, use ``MapCodecProvider``. Instead of ``IterableCodec``,
191
191
use ``CollectionCodecProvider``, or ``IterableCodecProvider`` for ``Iterable``
192
- types that aren't ``Collection`` types.
192
+ types that aren't ``Collection`` types.
193
193
194
194
- Removes the ``sharded()`` and ``nonAtomic()`` methods from the
195
195
``MapReducePublisher`` and ``MapReduceIterable`` classes.
@@ -199,7 +199,7 @@ This driver version introduces the following breaking changes:
199
199
- ``Indexes.geoHaystack()``
200
200
- ``IndexOptions.getBucketSize()``
201
201
- ``IndexOptions.bucketSize()``
202
-
202
+
203
203
Instead, you can use the ``$geoNear`` aggregation pipeline stage or a geospatial
204
204
query operator on a 2d index. For more information, see the
205
205
:manual:`Geospatial Queries page </geospatial-queries>` in the {+mdb-server+} manual.
@@ -262,7 +262,7 @@ This driver version introduces the following breaking changes:
262
262
263
263
- Removes the following classes from the
264
264
``com.mongodb.event`` package:
265
-
265
+
266
266
- ``ConnectionAddedEvent``
267
267
- ``ConnectionPoolOpenedEvent``
268
268
- ``ConnectionRemovedEvent``
@@ -273,11 +273,11 @@ This driver version introduces the following breaking changes:
273
273
274
274
Because of these removals, the following methods were also removed from the
275
275
``ConnectionPoolListener`` interface:
276
-
276
+
277
277
- ``connectionAdded``
278
278
- ``connectionPoolOpened``
279
279
- ``connectionRemoved``
280
-
280
+
281
281
For more information about the events package, see the `com.mongodb.event
282
282
package documentation <{+api+}/apidocs/mongodb-driver-core/com/mongodb/event/package-summary.html>`__
283
283
@@ -288,7 +288,7 @@ This driver version introduces the following breaking changes:
288
288
change in the ``MongoDatabase.listCollectionNames()`` methods, meaning any
289
289
code using these methods must be recompiled. This change does not require any
290
290
changes to source code.
291
-
291
+
292
292
- Removes the following methods and types related to the
293
293
`Stream
294
294
<https://mongodb.github.io/mongo-java-driver/4.11/apidocs/mongodb-driver-core/com/mongodb/connection/Stream.html>`__
0 commit comments