Class ConnectionPoolSettings
- Namespace
- MongoDB.Driver.Core.Configuration
- Assembly
- MongoDB.Driver.Core.dll
Represents settings for a connection pool.
public class ConnectionPoolSettings
- Inheritance
-
ConnectionPoolSettings
- Inherited Members
Constructors
- ConnectionPoolSettings(Optional<TimeSpan>, Optional<int>, Optional<int>, Optional<int>, Optional<TimeSpan>, Optional<int>)
Initializes a new instance of the ConnectionPoolSettings class.
Properties
- MaintenanceInterval
Gets the maintenance interval. Infinite values indicates that maintenance thread is disabled.
- MaxConnecting
Gets the maximum number of connections a pool may be establishing concurrently. Defaults to 2.
- MaxConnections
Gets the maximum number of connections.
- MinConnections
Gets the minimum number of connections.
- WaitQueueSize
Gets the size of the wait queue.
- WaitQueueTimeout
Gets the wait queue timeout.
Methods
- With(Optional<TimeSpan>, Optional<int>, Optional<int>, Optional<int>, Optional<TimeSpan>, Optional<int>)
Returns a new ConnectionPoolSettings instance with some settings changed.