Example usage for Java com.mongodb.client MongoClient fields, constructors, methods, implement or subclass
The text is from its open source code.
void | close() Close the client, which will close all underlying cached resources, including, for example, sockets and background monitoring threads. |
MongoDatabase | getDatabase(String databaseName) Gets a MongoDatabase instance for the given database name. |
ClientSession | startSession(ClientSessionOptions options) Creates a client session. |