Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
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.internal.event |
Modifier and Type | Field and Description |
---|---|
private ServerSettings |
MongoClientOptions.serverSettings |
Modifier and Type | Method and Description |
---|---|
(package private) ServerSettings |
MongoClientOptions.getServerSettings() |
Modifier and Type | Field and Description |
---|---|
private ServerSettings |
MongoClientSettings.serverSettings |
private ServerSettings |
MongoClientSettings.Builder.serverSettings |
Modifier and Type | Method and Description |
---|---|
ServerSettings |
MongoClientSettings.getServerSettings()
Gets the server-specific settings wrapped in a settings object.
|
Modifier and Type | Method and Description |
---|---|
MongoClientSettings.Builder |
MongoClientSettings.Builder.serverSettings(ServerSettings serverSettings)
Sets the server settings.
|
Modifier and Type | Field and Description |
---|---|
private ServerSettings |
ClusterDescription.serverSettings |
private ServerSettings |
DefaultClusterableServerFactory.serverSettings |
private ServerSettings |
DefaultServerMonitor.serverSettings |
private ServerSettings |
DefaultServerMonitorFactory.settings |
Modifier and Type | Method and Description |
---|---|
ServerSettings |
ServerSettings.Builder.build()
Create a new ServerSettings from the settings applied to this builder.
|
ServerSettings |
ClusterDescription.getServerSettings()
Gets the server settings, which may be null if not provided.
|
ServerSettings |
DefaultClusterableServerFactory.getSettings() |
ServerSettings |
ClusterableServerFactory.getSettings() |
Modifier and Type | Method and Description |
---|---|
static ServerSettings.Builder |
ServerSettings.builder(ServerSettings serverSettings)
Creates a builder instance.
|
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)
|
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.
|
Constructor and Description |
---|
Builder(ServerSettings serverSettings) |
ClusterDescription(ClusterConnectionMode connectionMode,
ClusterType type,
java.util.List<ServerDescription> serverDescriptions,
ClusterSettings clusterSettings,
ServerSettings serverSettings)
Creates a new ClusterDescription.
|
DefaultClusterableServerFactory(ClusterId clusterId,
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) |
DefaultServerMonitor(ServerId serverId,
ServerSettings serverSettings,
ClusterClock clusterClock,
ChangeListener<ServerDescription> serverStateListener,
InternalConnectionFactory internalConnectionFactory,
ConnectionPool connectionPool) |
DefaultServerMonitorFactory(ServerId serverId,
ServerSettings settings,
ClusterClock clusterClock,
InternalConnectionFactory internalConnectionFactory,
ConnectionPool connectionPool) |
Modifier and Type | Method and Description |
---|---|
static ServerListener |
EventListenerHelper.createServerListener(ServerSettings serverSettings,
ServerListener additionalServerListener) |
static ServerMonitorListener |
EventListenerHelper.getServerMonitorListener(ServerSettings serverSettings) |