Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
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 | Field and Description |
---|---|
private java.util.List<ClusterListener> |
MongoClientOptions.clusterListeners |
private java.util.List<ClusterListener> |
MongoClientOptions.Builder.clusterListeners |
Modifier and Type | Method and Description |
---|---|
java.util.List<ClusterListener> |
MongoClientOptions.getClusterListeners()
Gets the list of added
ClusterListener . |
Modifier and Type | Method and Description |
---|---|
MongoClientOptions.Builder |
MongoClientOptions.Builder.addClusterListener(ClusterListener clusterListener)
Adds the given cluster listener.
|
Modifier and Type | Field and Description |
---|---|
private ClusterListener |
BaseCluster.clusterListener |
Modifier and Type | Field and Description |
---|---|
private java.util.List<ClusterListener> |
ClusterSettings.clusterListeners |
private java.util.List<ClusterListener> |
ClusterSettings.Builder.clusterListeners |
Modifier and Type | Method and Description |
---|---|
java.util.List<ClusterListener> |
ClusterSettings.getClusterListeners()
Gets the cluster listeners.
|
Modifier and Type | Method and Description |
---|---|
ClusterSettings.Builder |
ClusterSettings.Builder.addClusterListener(ClusterListener clusterListener)
Adds a cluster listener.
|
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)
|
private ClusterSettings |
DefaultClusterFactory.getClusterSettings(ClusterSettings settings,
ClusterListener clusterListener) |
Modifier and Type | Class and Description |
---|---|
class |
ClusterEventMulticaster
Deprecated.
register multiple cluster listeners instead
|
class |
ClusterListenerAdapter
An adapter for cluster listener implementations, for clients that want to listen for a subset of cluster events.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<ClusterListener> |
ClusterEventMulticaster.clusterListeners
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<ClusterListener> |
ClusterEventMulticaster.getClusterListeners()
Deprecated.
Gets the cluster listeners.
|
Constructor and Description |
---|
ClusterEventMulticaster(java.util.List<ClusterListener> clusterListeners)
Deprecated.
Construct an instance with the given list of cluster listeners
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
ClusterListenerMulticaster |
Modifier and Type | Field and Description |
---|---|
static ClusterListener |
EventListenerHelper.NO_OP_CLUSTER_LISTENER |
Modifier and Type | Field and Description |
---|---|
private java.util.List<ClusterListener> |
ClusterListenerMulticaster.clusterListeners |
Modifier and Type | Method and Description |
---|---|
static ClusterListener |
EventListenerHelper.getClusterListener(ClusterSettings clusterSettings) |
Constructor and Description |
---|
ClusterListenerMulticaster(java.util.List<ClusterListener> clusterListeners) |