File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
driver-core/src/main/com/mongodb
driver-legacy/src/main/com/mongodb Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 128
128
* <li>{@code maxPoolSize=n}: The maximum number of connections in the connection pool.</li>
129
129
* <li>{@code waitQueueMultiple=n} : this multiplier, multiplied with the maxPoolSize setting, gives the maximum number of
130
130
* threads that may be waiting for a connection to become available from the pool. All further threads will get an
131
- * exception right away.</li>
131
+ * exception right away. Note that this configuration option is deprecated and will be removed in the next major release. </li>
132
132
* <li>{@code waitQueueTimeoutMS=ms}: The maximum wait time in milliseconds that a thread may wait for a connection to
133
133
* become available.</li>
134
134
* </ul>
@@ -1209,7 +1209,9 @@ public Integer getMaxConnectionPoolSize() {
1209
1209
/**
1210
1210
* Gets the multiplier for the number of threads allowed to block waiting for a connection specified in the connection string.
1211
1211
* @return the multiplier for the number of threads allowed to block waiting for a connection
1212
+ * @deprecated in the next major release, wait queue size limitations will be removed
1212
1213
*/
1214
+ @ Deprecated
1213
1215
@ Nullable
1214
1216
public Integer getThreadsAllowedToBlockForConnectionMultiplier () {
1215
1217
return threadsAllowedToBlockForConnectionMultiplier ;
Original file line number Diff line number Diff line change @@ -271,7 +271,6 @@ public List<MongoCompressor> getCompressorList() {
271
271
* <p>Default is 100.</p>
272
272
*
273
273
* @return the maximum size of the connection pool per host
274
- * @see MongoClientOptions#getThreadsAllowedToBlockForConnectionMultiplier()
275
274
*/
276
275
public int getConnectionsPerHost () {
277
276
return maxConnectionsPerHost ;
@@ -296,8 +295,10 @@ public int getMinConnectionsPerHost() {
296
295
*
297
296
* <p>Default is 5.</p>
298
297
*
298
+ * @deprecated in the next major release, wait queue size limitations will be removed
299
299
* @return the multiplier
300
300
*/
301
+ @ Deprecated
301
302
public int getThreadsAllowedToBlockForConnectionMultiplier () {
302
303
return threadsAllowedToBlockForConnectionMultiplier ;
303
304
}
@@ -1188,7 +1189,9 @@ public Builder connectionsPerHost(final int connectionsPerHost) {
1188
1189
* @return {@code this}
1189
1190
* @throws IllegalArgumentException if {@code threadsAllowedToBlockForConnectionMultiplier < 1}
1190
1191
* @see MongoClientOptions#getThreadsAllowedToBlockForConnectionMultiplier()
1192
+ * @deprecated in the next major release, wait queue size limitations will be removed
1191
1193
*/
1194
+ @ Deprecated
1192
1195
public Builder threadsAllowedToBlockForConnectionMultiplier (final int threadsAllowedToBlockForConnectionMultiplier ) {
1193
1196
isTrueArgument ("threadsAllowedToBlockForConnectionMultiplier must be > 0" , threadsAllowedToBlockForConnectionMultiplier > 0 );
1194
1197
this .threadsAllowedToBlockForConnectionMultiplier = threadsAllowedToBlockForConnectionMultiplier ;
Original file line number Diff line number Diff line change 108
108
* <li>{@code maxPoolSize=n}: The maximum number of connections in the connection pool.</li>
109
109
* <li>{@code waitQueueMultiple=n} : this multiplier, multiplied with the maxPoolSize setting, gives the maximum number of
110
110
* threads that may be waiting for a connection to become available from the pool. All further threads will get an
111
- * exception right away.</li>
111
+ * exception right away. Note that this configuration option is deprecated and will be removed in the next major release. </li>
112
112
* <li>{@code waitQueueTimeoutMS=ms}: The maximum wait time in milliseconds that a thread may wait for a connection to
113
113
* become available.</li>
114
114
* </ul>
You can’t perform that action at this time.
0 commit comments