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
|
com.mongodb.management |
Contains classes for monitoring the server/driver via Java Management Extensions (JMX).
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
NoOpConnectionPoolListener |
Modifier and Type | Field and Description |
---|---|
private ConnectionPoolListener |
DefaultConnectionPool.connectionPoolListener |
private ConnectionPoolListener |
DefaultClusterableServerFactory.connectionPoolListener |
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) |
DefaultConnectionPool(ServerId serverId,
InternalConnectionFactory internalConnectionFactory,
ConnectionPoolSettings settings,
ConnectionPoolListener connectionPoolListener) |
Modifier and Type | Class and Description |
---|---|
class |
ConnectionPoolEventMulticaster
A multicaster for connection pool events.
|
class |
ConnectionPoolListenerAdapter
An adapter for connection pool listener implementations, for clients that want to listen for a subset of connection pool events.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Set<ConnectionPoolListener> |
ConnectionPoolEventMulticaster.connectionPoolListeners |
Modifier and Type | Method and Description |
---|---|
void |
ConnectionPoolEventMulticaster.add(ConnectionPoolListener connectionPoolListener)
Adds the given connection pool listener to the list of listeners to invoke on connection pool events.
|
void |
ConnectionPoolEventMulticaster.remove(ConnectionPoolListener connectionPoolListener)
Removes the given connection pool listener from the list of listeners to invoke on connection pool events.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
ConnectionPoolStatistics
An MBean implementation for connection pool statistics.
|
class |
JMXConnectionPoolListener
A connection pool listener that manages a set of JMX MBeans, one for each connection pool.
|