ConnectionPoolSettings Constructor |
Namespace:
MongoDB.Driver.Core.Configuration
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
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
)
Public Sub New (
Optional maintenanceInterval As Optional(Of TimeSpan) = Nothing,
Optional maxConnections As Optional(Of Integer) = Nothing,
Optional minConnections As Optional(Of Integer) = Nothing,
Optional waitQueueSize As Optional(Of Integer) = Nothing,
Optional waitQueueTimeout As Optional(Of TimeSpan) = Nothing,
Optional maxConnecting As Optional(Of Integer) = Nothing
)
new :
?maintenanceInterval : Optional<TimeSpan> *
?maxConnections : Optional<int> *
?minConnections : Optional<int> *
?waitQueueSize : Optional<int> *
?waitQueueTimeout : Optional<TimeSpan> *
?maxConnecting : Optional<int>
(* Defaults:
let _maintenanceInterval = defaultArg maintenanceInterval new Optional<TimeSpan>()
let _maxConnections = defaultArg maxConnections new Optional<int>()
let _minConnections = defaultArg minConnections new Optional<int>()
let _waitQueueSize = defaultArg waitQueueSize new Optional<int>()
let _waitQueueTimeout = defaultArg waitQueueTimeout new Optional<TimeSpan>()
let _maxConnecting = defaultArg maxConnecting new Optional<int>()
*)
-> ConnectionPoolSettings
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