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.event |
This package contains cluster and connection event related classes
|
com.mongodb.internal.event |
Modifier and Type | Method and Description |
---|---|
List<CommandListener> |
MongoClientOptions.getCommandListeners()
Gets the list of added
CommandListener . |
Modifier and Type | Method and Description |
---|---|
MongoClientOptions.Builder |
MongoClientOptions.Builder.addCommandListener(CommandListener commandListener)
Adds the given command listener.
|
Modifier and Type | Method and Description |
---|---|
List<CommandListener> |
MongoClientSettings.getCommandListeners()
Gets the list of added
CommandListener . |
Modifier and Type | Method and Description |
---|---|
MongoClientSettings.Builder |
MongoClientSettings.Builder.addCommandListener(CommandListener commandListener)
Adds the given command listener.
|
Modifier and Type | Method and Description |
---|---|
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 | Class and Description |
---|---|
class |
CommandEventMulticaster
Deprecated.
register multiple command listeners instead
|
class |
CommandListenerMulticaster
Deprecated.
register multiple command listeners in the settings
|
Modifier and Type | Method and Description |
---|---|
List<CommandListener> |
CommandEventMulticaster.getCommandListeners()
Deprecated.
Gets the command listeners.
|
List<CommandListener> |
CommandListenerMulticaster.getCommandListeners()
Deprecated.
Gets the command listeners.
|
Constructor and Description |
---|
CommandEventMulticaster(List<CommandListener> commandListeners)
Deprecated.
Construct an instance with the given list of command listeners
|
CommandListenerMulticaster(List<CommandListener> commandListeners)
Deprecated.
Construct an instance with the given list of command listeners
|
Modifier and Type | Method and Description |
---|---|
static CommandListener |
EventListenerHelper.getCommandListener(List<CommandListener> commandListeners) |
Modifier and Type | Method and Description |
---|---|
static CommandListener |
EventListenerHelper.getCommandListener(List<CommandListener> commandListeners) |
Copyright © 2017. All Rights Reserved.