Calls close on each Mongo instance and clears the HashMap.
Define a Mongo db using a MongoClient instance.
Executes function f with the mongo named name.
Executes function f with the mongo named name. Uses the default ConnectionIdentifier
Executes function f with the mongo db named name.
Same as above except uses DefaultConnectionIdentifier
Executes function f with the mongo named name and collection names collectionName.
Executes function f with the mongo named name and collection names collectionName.
Gets a collection for you.
Same as above except uses DefaultConnectionIdentifier
Executes function f with the mongo db named name.
Executes function f with the mongo db named name. Uses the same socket
for the entire function block. Allows multiple operations on the same thread/socket connection
and the use of getLastError.
See: http://docs.mongodb.org/ecosystem/drivers/java-concurrency/
Clears HashMap of mongo instances.
Clears HashMap of mongo instances.
(Since version 2.6) Use clearAll instead.
(Since version 2.6) Use defineDb that takes a MongoClient instance.
(Since version 2.6) Use defineDb that takes a MongoClient instance.
(Since version 2.6) use MongoClient to supply credentials.
(Since version 2.6) use MongoClient to supply credentials.