Interface IConnectionPool
- Namespace
- MongoDB.Driver.Core.ConnectionPools
- Assembly
- MongoDB.Driver.Core.dll
Represents a connection pool.
public interface IConnectionPool : IDisposable
- Inherited Members
Properties
- Generation
Gets the generation of the connection pool.
- ServerId
Gets the server identifier.
Methods
- AcquireConnection(CancellationToken)
Acquires a connection.
- AcquireConnectionAsync(CancellationToken)
Acquires a connection.
- Clear(ObjectId)
Clears the connection pool for the specified service.
- Clear(bool)
Clears the connection pool and marks it as paused.
- GetGeneration(ObjectId?)
Gets the current generation for the connection pool (or service).
- Initialize()
Initializes the connection pool.
- SetReady()
Marks the pool as ready.