Interface MongoClient

All Superinterfaces:
AutoCloseable, Closeable, MongoCluster

@Immutable public interface MongoClient extends MongoCluster, Closeable
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.

Since:
1.0