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
|
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 |
---|---|
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)
Creates a cluster with the given settings.
|
Modifier and Type | Method and Description |
---|---|
ConnectionPoolSettings |
ConnectionPoolOpenedEvent.getSettings()
Gets the settings for this connection pool.
|
Constructor and Description |
---|
ConnectionPoolOpenedEvent(ServerId serverId,
ConnectionPoolSettings settings)
Constructs a new instance of the event.
|
Copyright © 2016. All Rights Reserved.