Package | Description |
---|---|
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 | Class and Description |
---|---|
private static class |
InternalStreamConnection.ErrorHandlingConnectionListener |
(package private) class |
NoOpConnectionListener |
Modifier and Type | Field and Description |
---|---|
private ConnectionListener |
InternalStreamConnectionFactory.connectionListener |
private ConnectionListener |
InternalStreamConnection.connectionListener |
private ConnectionListener |
DefaultClusterableServerFactory.connectionListener |
private ConnectionListener |
InternalStreamConnection.ErrorHandlingConnectionListener.wrapped |
Modifier and Type | Method and Description |
---|---|
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.
|
Constructor and Description |
---|
DefaultClusterableServerFactory(ClusterId clusterId,
ClusterSettings clusterSettings,
ServerSettings settings,
ConnectionPoolSettings connectionPoolSettings,
StreamFactory streamFactory,
StreamFactory heartbeatStreamFactory,
java.util.List<MongoCredential> credentialList,
ConnectionListener connectionListener,
ConnectionPoolListener connectionPoolListener,
CommandListener commandListener,
java.lang.String applicationName,
MongoDriverInformation mongoDriverInformation) |
ErrorHandlingConnectionListener(ConnectionListener wrapped) |
InternalStreamConnection(ServerId serverId,
StreamFactory streamFactory,
InternalConnectionInitializer connectionInitializer,
ConnectionListener connectionListener) |
InternalStreamConnectionFactory(StreamFactory streamFactory,
java.util.List<MongoCredential> credentialList,
ConnectionListener connectionListener,
java.lang.String applicationName,
MongoDriverInformation mongoDriverInformation) |
Modifier and Type | Class and Description |
---|---|
class |
ConnectionEventMulticaster
A multicaster for connection events.
|
class |
ConnectionListenerAdapter
An adapter for connection listener implementations, for clients that want to listen for a subset of connection events.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Set<ConnectionListener> |
ConnectionEventMulticaster.connectionListeners |
Modifier and Type | Method and Description |
---|---|
void |
ConnectionEventMulticaster.add(ConnectionListener connectionListener)
Adds the given connection listener to the list of listeners to invoke on connection events.
|
void |
ConnectionEventMulticaster.remove(ConnectionListener connectionListener)
Removes the given connection listener from the list of listeners to invoke on connection events.
|