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
the client session with which to associate this operation
an iterable containing all the names of all the databases
2.2
Requires MongoDB 3.6 or greater
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 client session with which to associate this operation
the fluent list databases interface
2.2
Requires MongoDB 3.6 or greater
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
Creates a client session.
Creates a client session.
Note: A ClientSession instance can not be used concurrently in multiple asynchronous operations.
the options for the client session
2.2
Requires MongoDB 3.6 or greater
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