Java com.mongodb.client MongoClient fields, constructors, methods, implement or subclass

Example usage for Java com.mongodb.client MongoClient fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.mongodb.client MongoClient.

The text is from its open source code.

Method

voidclose()
Close the client, which will close all underlying cached resources, including, for example, sockets and background monitoring threads.
MongoDatabasegetDatabase(String databaseName)
Gets a MongoDatabase instance for the given database name.
ClientSessionstartSession(ClientSessionOptions options)
Creates a client session.