the name of the supervisor
the unique name for the connection pool
the reference to the internal reactivemongo.core.actors.MongoDBSystem Actor.
(Since version 0.11.14) Create with an explicit supervisor and connection names
Returns true if the connection has not been killed.
Closes this MongoConnection (closes all the channels and ends the actors).
Authenticates the connection on the given database.
Authenticates the connection on the given database.
the database name
the user name
the user password
the failover strategy for sending requests
Returns a DefaultDB reference using this connection.
Returns a DefaultDB reference using this connection. The failover strategy is also used to wait for the node set to be ready, before returning an available DB.
the database name
the failover strategy for sending requests
the reference to the internal reactivemongo.core.actors.MongoDBSystem Actor.
the unique name for the connection pool
the name of the supervisor
(Since version 0.14.0) Will be private
Returns a DefaultDB reference using this connection.
Returns a DefaultDB reference using this connection.
the database name
the failover strategy for sending requests
(Since version 0.11.8) Use database
(Since version 0.14.0) Use authenticate
with failoverStrategy
Closes this MongoConnection (closes all the channels and ends the actors)
Closes this MongoConnection (closes all the channels and ends the actors)
(Since version 0.13.0) Use askClose
Returns a DefaultDB reference using this connection
(alias for the apply
method).
Returns a DefaultDB reference using this connection
(alias for the apply
method).
the database name
the failover strategy for sending requests
(Since version 0.11.8) Must use database
A pool of MongoDB connections, obtained from a reactivemongo.api.MongoDriver.
Connection here does not mean that there is one open channel to the server: behind the scene, many connections (channels) are open on all the available servers in the replica set.
Example: