File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,25 @@ Version 5.0 Breaking Changes
126
126
replica set name, regardless of how it is configured. Previously, replica set
127
127
name was only considered if it was set by the connection string.
128
128
129
+ For example, the following two code samples return the value ``ClusterConnectionMode.MULTIPLE``
130
+
131
+ .. code-block:: java
132
+
133
+ ClusterSettings.builder()
134
+ .applyConnectionString(new ConnectionString("mongodb://127.0.0.1:27017/?replicaSet=replset"))
135
+ .build()
136
+ .getMode()
137
+
138
+ .. code-block:: java
139
+
140
+ ClusterSettings.builder()
141
+ .hosts(Collections.singletonList(
142
+ new ServerAddress("127.0.0.1", 27017)
143
+ ))
144
+ .requiredReplicaSetName("replset")
145
+ .build()
146
+ .getMode()
147
+
129
148
- This driver changes how ``BsonDecimal128`` values respond to method calls, by
130
149
responding in the same way as ``Decimal128`` values. In particular,
131
150
``BsonDecimal128.isNumber()`` now returns ``true``, and
You can’t perform that action at this time.
0 commit comments