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
|
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 | Class and Description |
---|---|
(package private) class |
NoOpClusterListener |
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 |
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)
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,
java.lang.String applicationName,
MongoDriverInformation mongoDriverInformation)
Creates a cluster with the given settings.
|
Modifier and Type | Class and Description |
---|---|
class |
ClusterEventMulticaster
A multicaster for cluster events.
|
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 |
Modifier and Type | Method and Description |
---|---|
java.util.List<ClusterListener> |
ClusterEventMulticaster.getClusterListeners()
Gets the cluster listeners.
|
Constructor and Description |
---|
ClusterEventMulticaster(java.util.List<ClusterListener> clusterListeners)
Construct an instance with the given list of cluster listeners
|