Package | Description |
---|---|
com.mongodb.async.client |
This packages contains classes for the new async client
|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
com.mongodb.event |
This package contains cluster and connection event related classes
|
com.mongodb.internal.event |
Modifier and Type | Method and Description |
---|---|
ConnectionPoolSettings |
MongoClientSettings.getConnectionPoolSettings()
Gets the settings for the connection provider in a settings object.
|
Modifier and Type | Method and Description |
---|---|
MongoClientSettings.Builder |
MongoClientSettings.Builder.connectionPoolSettings(ConnectionPoolSettings connectionPoolSettings)
Sets the connection pool settings.
|
Modifier and Type | Method and Description |
---|---|
ConnectionPoolSettings |
ConnectionPoolSettings.Builder.build()
Creates a new ConnectionPoolSettings object with the settings initialised on this builder.
|
Modifier and Type | Method and Description |
---|---|
static ConnectionPoolSettings.Builder |
ConnectionPoolSettings.builder(ConnectionPoolSettings connectionPoolSettings)
Gets a Builder for creating a new ConnectionPoolSettings instance.
|
Cluster |
ClusterFactory.create(ClusterSettings settings,
ServerSettings serverSettings,
ConnectionPoolSettings connectionPoolSettings,
StreamFactory streamFactory,
StreamFactory heartbeatStreamFactory,
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,
List<MongoCredential> credentialList,
ClusterListener clusterListener,
ConnectionPoolListener connectionPoolListener,
ConnectionListener connectionListener) |
Cluster |
DefaultClusterFactory.create(ClusterSettings settings,
ServerSettings serverSettings,
ConnectionPoolSettings connectionPoolSettings,
StreamFactory streamFactory,
StreamFactory heartbeatStreamFactory,
List<MongoCredential> credentialList,
ClusterListener clusterListener,
ConnectionPoolListener connectionPoolListener,
ConnectionListener connectionListener,
CommandListener commandListener)
|
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.
|
Modifier and Type | Method and Description |
---|---|
ConnectionPoolSettings |
ConnectionPoolOpenedEvent.getSettings()
Gets the connection pool settings.
|
Constructor and Description |
---|
ConnectionPoolOpenedEvent(ServerId serverId,
ConnectionPoolSettings settings)
Constructs a new instance of the event.
|
Modifier and Type | Method and Description |
---|---|
static ConnectionPoolListener |
EventListenerHelper.getConnectionPoolListener(ConnectionPoolSettings connectionPoolSettings) |
Copyright © 2017. All Rights Reserved.