the underlying java MongoClient
Close the client, which will close all underlying cached resources, including, for example, sockets and background monitoring threads.
Close the client, which will close all underlying cached resources, including, for example, sockets and background monitoring threads.
Gets the database with the given name.
Gets the database with the given name.
the name of the database
the database
Get a list of the database names
Get a list of the database names
an iterable containing all the names of all the databases
Gets the list of databases
Gets the list of databases
the type of the class to use instead of Document
.
the fluent list databases interface
Gets the settings that this client uses to connect to server.
Gets the settings that this client uses to connect to server.
**Note**: MongoClientSettings
is immutable.
the settings
A client-side representation of a MongoDB cluster. Instances can represent either a standalone MongoDB instance, a replica set, or a sharded cluster. Instance of this class are responsible for maintaining an up-to-date state of the cluster, and possibly cache resources related to this, including background threads for monitoring, and connection pools.
Instance of this class server as factories for MongoDatabase instances.
the underlying java MongoClient
1.0