const mixinafMongo::ConnectionManager
afMongo::ConnectionManager
Manages connections to a MongoDB instance.
- leaseConnection
abstract Obj? leaseConnection(|Connection->Obj? c)
Makes a connection available to the given function.
- mongoUri
abstract Uri mongoUri()
Basic details of where this
ConnectionManager
connects to, for debugging purposes. It should not contain any user credentials and should be safe to log.- shutdown
abstract ConnectionManager shutdown()
Closes all MongoDB connections.
- startup
abstract ConnectionManager startup()
Does what ever the
ConnectionManager
needs to do to initialise itself.Often this would be create database connections or other network related activity that it may not wish to do inside a ctor.