Expand description
Contains the events and functionality for monitoring behavior of the connection pooling of a
Client
.
Structs
- Event emitted when a connection is checked back into a connection pool.
- Event emitted when a connection is successfully checked out.
- Event emitted when a thread is unable to check out a connection.
- Event emitted when a thread begins checking out a connection to use for an operation.
- Event emitted when a connection is closed.
- Event emitted when a connection is created.
- Contains the options for creating a connection pool. While these options are specified at the client-level,
ConnectionPoolOptions
is exposed for the purpose of CMAP event handling. - Event emitted when a connection is ready to be used. This indicates that all the necessary prerequisites for using a connection (handshake, authentication, etc.) have been completed.
- Event emitted when a connection pool is cleared.
- Event emitted when a connection pool is cleared.
- Event emitted when a connection pool is created.
- Event emitted when a connection pool becomes ready.
Enums
- The reasons a connection may not be able to be checked out.
- The reasons that a connection may be closed.
Traits
- Applications can implement this trait to specify custom logic to run on each CMAP event sent by the driver.