ConnectionPoolSettingsWith Method |
Returns a new ConnectionPoolSettings instance with some settings changed.
Namespace:
MongoDB.Driver.Core.Configuration
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
Syntax public ConnectionPoolSettings With(
Optional<TimeSpan> maintenanceInterval = null,
Optional<int> maxConnections = null,
Optional<int> minConnections = null,
Optional<int> waitQueueSize = null,
Optional<TimeSpan> waitQueueTimeout = null,
Optional<int> maxConnecting = null
)
Public Function With (
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
) As ConnectionPoolSettings
member With :
?maintenanceInterval : Optional<TimeSpan> *
?maxConnections : Optional<int> *
?minConnections : Optional<int> *
?waitQueueSize : Optional<int> *
?waitQueueTimeout : Optional<TimeSpan> *
?maxConnecting : Optional<int>
(* 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
let _maxConnecting = defaultArg maxConnecting null
*)
-> ConnectionPoolSettings
Parameters
- maintenanceInterval (Optional)
- Type: MongoDB.DriverOptionalTimeSpan
The maintenance interval. - maxConnections (Optional)
- Type: MongoDB.DriverOptionalInt32
The maximum connections. - minConnections (Optional)
- Type: MongoDB.DriverOptionalInt32
The minimum 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.
Return Value
Type:
ConnectionPoolSettingsA new ConnectionPoolSettings instance.
See Also