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.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntax
public ConnectionPoolSettings(
	Optional<TimeSpan> maintenanceInterval = default,
	Optional<int> maxConnections = default,
	Optional<int> minConnections = default,
	Optional<int> waitQueueSize = default,
	Optional<TimeSpan> waitQueueTimeout = default,
	Optional<int> maxConnecting = default
)

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.
maxConnecting (Optional)
Type: MongoDB.DriverOptionalInt32
The maximum concurrently connecting connections.
See Also