ConnectionPoolSettings Constructor |
Namespace:
MongoDB.Driver.Core.Configuration
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.13.1-v2-13-x1+a7f8afe27855f38f4f72157d11ba2ae73895502e
Syntax public ConnectionPoolSettings(
Optional<TimeSpan> maintenanceInterval = null,
Optional<int> maxConnections = null,
Optional<int> minConnections = null,
Optional<int> waitQueueSize = null,
Optional<TimeSpan> waitQueueTimeout = null
)
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
)
new :
?maintenanceInterval : Optional<TimeSpan> *
?maxConnections : Optional<int> *
?minConnections : Optional<int> *
?waitQueueSize : Optional<int> *
?waitQueueTimeout : Optional<TimeSpan>
(* Defaults:
let _maintenanceInterval = defaultArg maintenanceInterval null
let _maxConnections = defaultArg maxConnections null
let _minConnections = defaultArg minConnections null
let _waitQueueSize = defaultArg waitQueueSize null
let _waitQueueTimeout = defaultArg waitQueueTimeout null
*)
-> 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.
See Also