Skip to content

Commit 9fbf11b

Browse files
committed
Change javadoc.
1 parent 03efbf4 commit 9fbf11b

3 files changed

Lines changed: 5 additions & 14 deletions

File tree

driver-core/src/main/com/mongodb/ConnectionString.java

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@
279279
* See {@link MongoClientSettings.Builder#maxAdaptiveRetries(Integer)} for more information.</li>
280280
* <li>{@code enableOverloadRetargeting=true|false}. If true the driver may route a request to a different server on a subsequent
281281
* retry attempt if the previously used server is overloaded. Does not take effect for {@linkplain ClusterType#SHARDED sharded clusters}.
282-
* Defaults to false.</li> //TODO-SSLAV add see
282+
* Defaults to false. See {@link MongoClientSettings.Builder#enableOverloadRetargeting(boolean)} for more information.</li>
283283
* <li>{@code uuidRepresentation=unspecified|standard|javaLegacy|csharpLegacy|pythonLegacy}. See
284284
* {@link MongoClientSettings#getUuidRepresentation()} for documentation of semantics of this parameter. Defaults to "javaLegacy", but
285285
* will change to "unspecified" in the next major release.</li>
@@ -1522,17 +1522,7 @@ public Integer getMaxAdaptiveRetries() {
15221522

15231523
/**
15241524
* Gets whether overload retargeting is enabled.
1525-
*
1526-
* <p>When enabled, the previously selected servers on which attempts failed with an error
1527-
* {@linkplain MongoException#hasErrorLabel(String) having}
1528-
* the {@value MongoException#SYSTEM_OVERLOADED_ERROR_LABEL} label may be deprioritized during
1529-
* server selection on subsequent retry attempts. This applies to reads when retryReads is enabled,
1530-
* and to writes when retryWrites is enabled.</p>
1531-
*
1532-
* <p>This setting does not take effect for
1533-
* {@linkplain com.mongodb.connection.ClusterType#SHARDED sharded clusters}.</p>
1534-
*
1535-
* <p>Defaults to {@code false}.</p>
1525+
* See {@link MongoClientSettings.Builder#enableOverloadRetargeting(boolean)} for more information.
15361526
*
15371527
* @return the enableOverloadRetargeting value, or null if not set
15381528
* @see MongoClientSettings.Builder#enableOverloadRetargeting(boolean)

driver-legacy/src/main/com/mongodb/MongoClientURI.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@
220220
* See {@link MongoClientSettings.Builder#maxAdaptiveRetries(Integer)} for more information.</li>
221221
* <li>{@code enableOverloadRetargeting=true|false}. If true the driver may route a request to a different server on a subsequent
222222
* retry attempt if the previously used server is overloaded. Does not take effect for
223-
* {@linkplain com.mongodb.connection.ClusterType#SHARDED sharded clusters}. Defaults to false.</li>
223+
* {@linkplain com.mongodb.connection.ClusterType#SHARDED sharded clusters}. Defaults to false.
224+
* See {@link MongoClientSettings.Builder#enableOverloadRetargeting(boolean)} for more information.</li>
224225
* <li>{@code uuidRepresentation=unspecified|standard|javaLegacy|csharpLegacy|pythonLegacy}. See
225226
* {@link MongoClientOptions#getUuidRepresentation()} for documentation of semantics of this parameter. Defaults to "javaLegacy", but
226227
* will change to "unspecified" in the next major release.</li>

driver-legacy/src/test/unit/com/mongodb/MongoClientURISpecification.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ class MongoClientURISpecification extends Specification {
342342
given:
343343
def uri = new MongoClientURI('mongodb://localhost/?'
344344
+ 'maxPoolSize=250'
345-
+ '&maxAdaptiveRetries=43',
345+
+ '&maxAdaptiveRetries=43'
346346
+ '&enableOverloadRetargeting=false',
347347
MongoClientOptions.builder()
348348
.connectionsPerHost(200)

0 commit comments

Comments
 (0)