Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
com.mongodb.async.client |
This packages contains classes for the new async client
|
com.mongodb.binding |
This package contains classes that manage binding to MongoDB servers for various operations.
|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
Modifier and Type | Field and Description |
---|---|
private Cluster |
Mongo.cluster |
private Cluster |
ReplicaSetStatus.cluster |
Modifier and Type | Method and Description |
---|---|
private static Cluster |
Mongo.createCluster(ClusterSettings.Builder settingsBuilder,
java.util.List<MongoCredential> credentialsList,
MongoClientOptions options,
MongoDriverInformation mongoDriverInformation) |
private static Cluster |
Mongo.createCluster(java.util.List<ServerAddress> seedList,
java.util.List<MongoCredential> credentialsList,
MongoClientOptions options,
MongoDriverInformation mongoDriverInformation) |
private static Cluster |
Mongo.createCluster(MongoClientURI mongoURI,
MongoDriverInformation mongoDriverInformation) |
private static Cluster |
Mongo.createCluster(ServerAddress serverAddress,
java.util.List<MongoCredential> credentialsList,
MongoClientOptions options,
MongoDriverInformation mongoDriverInformation) |
(package private) Cluster |
Mongo.getCluster() |
Constructor and Description |
---|
Mongo(Cluster cluster,
MongoClientOptions options,
java.util.List<MongoCredential> credentialsList) |
ReplicaSetStatus(Cluster cluster) |
Modifier and Type | Field and Description |
---|---|
private Cluster |
MongoClientImpl.cluster |
Modifier and Type | Method and Description |
---|---|
(package private) Cluster |
MongoClientImpl.getCluster() |
Modifier and Type | Method and Description |
---|---|
private static AsyncOperationExecutor |
MongoClientImpl.createOperationExecutor(MongoClientSettings settings,
Cluster cluster) |
private static AsyncReadWriteBinding |
MongoClientImpl.getReadWriteBinding(ReadPreference readPreference,
Cluster cluster) |
Constructor and Description |
---|
MongoClientImpl(MongoClientSettings settings,
Cluster cluster,
AsyncOperationExecutor executor) |
MongoClientImpl(MongoClientSettings settings,
Cluster cluster,
AsyncOperationExecutor executor,
java.io.Closeable externalResourceCloser) |
MongoClientImpl(MongoClientSettings settings,
Cluster cluster,
java.io.Closeable externalResourceCloser) |
Modifier and Type | Field and Description |
---|---|
private Cluster |
AsyncClusterBinding.cluster |
private Cluster |
ClusterBinding.cluster |
private Cluster |
SingleServerBinding.cluster |
Constructor and Description |
---|
AsyncClusterBinding(Cluster cluster,
ReadPreference readPreference)
Creates an instance.
|
ClusterBinding(Cluster cluster,
ReadPreference readPreference)
Creates an instance.
|
SingleServerBinding(Cluster cluster,
ServerAddress serverAddress)
Creates an instance, defaulting to
ReadPreference.primary() for reads. |
SingleServerBinding(Cluster cluster,
ServerAddress serverAddress,
ReadPreference readPreference)
Creates an instance.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
BaseCluster |
(package private) class |
MultiServerCluster
This class needs to be final because we are leaking a reference to "this" from the constructor
|
(package private) class |
SingleServerCluster
This class needs to be final because we are leaking a reference to "this" from the constructor
|
Modifier and Type | Method and Description |
---|---|
Cluster |
DefaultClusterFactory.create(ClusterSettings settings,
ServerSettings serverSettings,
ConnectionPoolSettings connectionPoolSettings,
StreamFactory streamFactory,
StreamFactory heartbeatStreamFactory,
java.util.List<MongoCredential> credentialList,
ClusterListener clusterListener,
ConnectionPoolListener connectionPoolListener,
ConnectionListener connectionListener) |
Cluster |
ClusterFactory.create(ClusterSettings settings,
ServerSettings serverSettings,
ConnectionPoolSettings connectionPoolSettings,
StreamFactory streamFactory,
StreamFactory heartbeatStreamFactory,
java.util.List<MongoCredential> credentialList,
ClusterListener clusterListener,
ConnectionPoolListener connectionPoolListener,
ConnectionListener connectionListener)
Creates a cluster with the given settings.
|
Cluster |
DefaultClusterFactory.create(ClusterSettings settings,
ServerSettings serverSettings,
ConnectionPoolSettings connectionPoolSettings,
StreamFactory streamFactory,
StreamFactory heartbeatStreamFactory,
java.util.List<MongoCredential> credentialList,
ClusterListener clusterListener,
ConnectionPoolListener connectionPoolListener,
ConnectionListener connectionListener,
CommandListener commandListener)
Creates a cluster with the given settings.
|
Cluster |
DefaultClusterFactory.create(ClusterSettings settings,
ServerSettings serverSettings,
ConnectionPoolSettings connectionPoolSettings,
StreamFactory streamFactory,
StreamFactory heartbeatStreamFactory,
java.util.List<MongoCredential> credentialList,
ClusterListener clusterListener,
ConnectionPoolListener connectionPoolListener,
ConnectionListener connectionListener,
CommandListener commandListener,
java.lang.String applicationName,
MongoDriverInformation mongoDriverInformation)
Creates a cluster with the given settings.
|