Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
com.mongodb.async.client |
This packages contains classes for the new async client
|
com.mongodb.client |
This package contains classes for the new client api for MongoDatabase and MongoCollection
|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
Constructor and Description |
---|
MongoClient(List<ServerAddress> seeds,
List<MongoCredential> credentialsList,
MongoClientOptions options,
MongoDriverInformation mongoDriverInformation)
Creates a MongoClient
|
MongoClient(MongoClientURI uri,
MongoDriverInformation mongoDriverInformation)
Creates a Mongo described by a URI.
|
MongoClient(ServerAddress addr,
List<MongoCredential> credentialsList,
MongoClientOptions options,
MongoDriverInformation mongoDriverInformation)
Creates a MongoClient to a single node using a given ServerAddress.
|
Modifier and Type | Method and Description |
---|---|
static MongoClient |
MongoClients.create(ConnectionString connectionString,
MongoDriverInformation mongoDriverInformation)
Create a new client with the given connection string.
|
static MongoClient |
MongoClients.create(MongoClientSettings settings,
MongoDriverInformation mongoDriverInformation)
Creates a new client with the given client settings.
|
Modifier and Type | Method and Description |
---|---|
MongoDriverInformation |
MongoDriverInformation.Builder.build() |
Modifier and Type | Method and Description |
---|---|
static MongoDriverInformation.Builder |
MongoDriverInformation.builder(MongoDriverInformation mongoDriverInformation)
Convenience method to create a Builder.
|
Modifier and Type | Method and Description |
---|---|
Cluster |
DefaultClusterFactory.create(ClusterSettings settings,
ServerSettings serverSettings,
ConnectionPoolSettings connectionPoolSettings,
StreamFactory streamFactory,
StreamFactory heartbeatStreamFactory,
List<MongoCredential> credentialList,
ClusterListener clusterListener,
ConnectionPoolListener connectionPoolListener,
ConnectionListener connectionListener,
CommandListener commandListener,
String applicationName,
MongoDriverInformation mongoDriverInformation)
|
Cluster |
DefaultClusterFactory.createCluster(ClusterSettings clusterSettings,
ServerSettings serverSettings,
ConnectionPoolSettings connectionPoolSettings,
StreamFactory streamFactory,
StreamFactory heartbeatStreamFactory,
List<MongoCredential> credentialList,
CommandListener commandListener,
String applicationName,
MongoDriverInformation mongoDriverInformation)
Creates a cluster with the given settings.
|
Copyright © 2017. All Rights Reserved.