Skip to content

Commit 14cf979

Browse files
committed
VK review
1 parent d76f95c commit 14cf979

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

source/upgrade.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,25 @@ Version 5.0 Breaking Changes
164164
=======
165165
>>>>>>> 0b9ba11 (VK review)
166166

167+
For example, the following two code samples return the value ``ClusterConnectionMode.MULTIPLE``
168+
169+
.. code-block:: java
170+
171+
ClusterSettings.builder()
172+
.applyConnectionString(new ConnectionString("mongodb://127.0.0.1:27017/?replicaSet=replset"))
173+
.build()
174+
.getMode()
175+
176+
.. code-block:: java
177+
178+
ClusterSettings.builder()
179+
.hosts(Collections.singletonList(
180+
new ServerAddress("127.0.0.1", 27017)
181+
))
182+
.requiredReplicaSetName("replset")
183+
.build()
184+
.getMode()
185+
167186
- This driver changes how ``BsonDecimal128`` values respond to method calls, by
168187
responding in the same way as ``Decimal128`` values. In particular,
169188
``BsonDecimal128.isNumber()`` now returns ``true``, and

0 commit comments

Comments
 (0)