/**
|
* The minimum number of connections per host for this MongoClient instance. Those connections will be kept in a pool when idle, and the
|
* pool will ensure over time that it contains at least this minimum number.
|
* <p/>
|
* Default is 0.
|
*
|
* @return the minimum size of the connection pool per host
|
* @since 2.12
|
*/
|
public int getMinConnectionsPerHost() {
|
return minConnectionsPerHost;
|
}
|
|
/**
|
* The maximum number of connections allowed per host for this MongoClient instance.
|
* Those connections will be kept in a pool when idle.
|
* Once the pool is exhausted, any operation requiring a connection will block waiting for an available connection.
|
* <p/>
|
* Default is 100.
|
*
|
* @return the maximum size of the connection pool per host
|
* @see MongoClientOptions#getThreadsAllowedToBlockForConnectionMultiplier()
|
*/
|
public int getConnectionsPerHost() {
|
return connectionsPerHost;
|
}
|
|