Click or drag to resize

ConnectionPoolSettings Constructor

Initializes a new instance of the ConnectionPoolSettings class.

Namespace:  MongoDB.Driver.Core.Configuration
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.9.0+32b058abcdf2c7e8d9dd3a676d207b31897eee2e
Syntax
public ConnectionPoolSettings(
	Optional<TimeSpan> maintenanceInterval = null,
	Optional<int> maxConnections = null,
	Optional<int> minConnections = null,
	Optional<int> waitQueueSize = null,
	Optional<TimeSpan> waitQueueTimeout = null
)

Parameters

maintenanceInterval (Optional)
Type: MongoDB.DriverOptionalTimeSpan
The maintenance interval.
maxConnections (Optional)
Type: MongoDB.DriverOptionalInt32
The maximum number of connections.
minConnections (Optional)
Type: MongoDB.DriverOptionalInt32
The minimum number of connections.
waitQueueSize (Optional)
Type: MongoDB.DriverOptionalInt32
Size of the wait queue.
waitQueueTimeout (Optional)
Type: MongoDB.DriverOptionalTimeSpan
The wait queue timeout.
See Also