const mixinafMongo::ConnectionManager

afMongo::ConnectionManager

Manages connections to a MongoDB instance.

@see ConnectionManagerPooled

leaseConnection

Source

abstract Obj? leaseConnection(|Connection->Obj? c)

Makes a connection available to the given function.

mongoUri

Source

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

Source

abstract ConnectionManager shutdown()

Closes all MongoDB connections.

startup

Source

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.