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.
|
com.mongodb.internal.session |
Modifier and Type | Field and Description |
---|---|
private Cluster |
ReplicaSetStatus.cluster |
private Cluster |
Mongo.cluster |
Modifier and Type | Method and Description |
---|---|
private static Cluster |
Mongo.createCluster(ClusterSettings clusterSettings,
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() |
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 |
SingleServerBinding.cluster |
private Cluster |
AsyncClusterBinding.cluster |
private Cluster |
ClusterBinding.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 |
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) |
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)
|
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)
|
Cluster |
DefaultClusterFactory.createCluster(ClusterSettings clusterSettings,
ServerSettings serverSettings,
ConnectionPoolSettings connectionPoolSettings,
StreamFactory streamFactory,
StreamFactory heartbeatStreamFactory,
java.util.List<MongoCredential> credentialList,
CommandListener commandListener,
java.lang.String applicationName,
MongoDriverInformation mongoDriverInformation)
|
Cluster |
DefaultClusterFactory.createCluster(ClusterSettings clusterSettings,
ServerSettings serverSettings,
ConnectionPoolSettings connectionPoolSettings,
StreamFactory streamFactory,
StreamFactory heartbeatStreamFactory,
java.util.List<MongoCredential> credentialList,
CommandListener commandListener,
java.lang.String applicationName,
MongoDriverInformation mongoDriverInformation,
java.util.List<MongoCompressor> compressorList)
Creates a cluster with the given settings.
|
Modifier and Type | Field and Description |
---|---|
private Cluster |
ServerSessionPool.cluster |
Constructor and Description |
---|
ServerSessionPool(Cluster cluster) |
ServerSessionPool(Cluster cluster,
ServerSessionPool.Clock clock) |