the reference to the internal reactivemongo.core.actors.MongoDBSystem Actor.
Returns a DefaultDB reference using this connection.
Returns a DefaultDB reference using this connection.
the database name
the failover strategy for sending requests.
Closes this MongoConnection (closes all the channels and ends the actors).
Authenticates the connection on the given database.
Closes this MongoConnection (closes all the channels and ends the actors)
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.
(mongoConnection: StringAdd).self
(mongoConnection: StringFormat).self
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 apply
(mongoConnection: ArrowAssoc[MongoConnection]).x
(Since version 2.10.0) Use leftOfArrow
instead
(mongoConnection: Ensuring[MongoConnection]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
A pool of MongoDB connections.
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: