Skip to content

Commit 5f218fc

Browse files
committed
Merge pull request #87 from iandaniel/master
JAVA-682: Improved comment of new connectionsPerHost default
2 parents 967247b + 7a33bf0 commit 5f218fc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/com/mongodb/MongoClient.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,14 @@
5353
* By default, all write operations will wait for acknowledgment by the server, as the default write concern is
5454
* {@code WriteConcern.ACKNOWLEDGED}.
5555
* <p>
56-
* In general, users of this class will pick up all of the default options specified in {@code MongoClientOptions}. In
57-
* particular, note that the default value of the connectionsPerHost option has been increased from 10 to 100.
58-
* <p>
5956
* Note: This class supersedes the {@code Mongo} class. While it extends {@code Mongo}, it differs from it in that
6057
* the default write concern is to wait for acknowledgment from the server of all write operations. In addition, its
6158
* constructors accept instances of {@code MongoClientOptions} and {@code MongoClientURI}, which both also
6259
* set the same default write concern.
60+
* <p>
61+
* In general, users of this class will pick up all of the default options specified in {@code MongoClientOptions}. In
62+
* particular, note that the default value of the connectionsPerHost option has been increased to 100 from the old
63+
* default value of 10 used by the superceded {@code Mongo} class.
6364
*
6465
* @see ReadPreference#primary()
6566
* @see com.mongodb.WriteConcern#ACKNOWLEDGED

0 commit comments

Comments
 (0)