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 | |
com.mongodb.management |
Contains classes for monitoring the server/driver via Java Management Extensions (JMX).
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<ConnectionPoolListener> |
MongoClientOptions.Builder.connectionPoolListeners |
Modifier and Type | Method and Description |
---|---|
java.util.List<ConnectionPoolListener> |
MongoClientOptions.getConnectionPoolListeners()
Gets the list of added
ConnectionPoolListener . |
Modifier and Type | Method and Description |
---|---|
MongoClientOptions.Builder |
MongoClientOptions.Builder.addConnectionPoolListener(ConnectionPoolListener connectionPoolListener)
Adds the given connection pool listener.
|
Modifier and Type | Field and Description |
---|---|
private ConnectionPoolListener |
DefaultConnectionPool.connectionPoolListener |
Modifier and Type | Field and Description |
---|---|
private java.util.List<ConnectionPoolListener> |
ConnectionPoolSettings.connectionPoolListeners |
private java.util.List<ConnectionPoolListener> |
ConnectionPoolSettings.Builder.connectionPoolListeners |
Modifier and Type | Method and Description |
---|---|
java.util.List<ConnectionPoolListener> |
ConnectionPoolSettings.getConnectionPoolListeners()
Gets the list of added
ConnectionPoolListener . |
Modifier and Type | Method and Description |
---|---|
ConnectionPoolSettings.Builder |
ConnectionPoolSettings.Builder.addConnectionPoolListener(ConnectionPoolListener connectionPoolListener)
Adds the given connection pool 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)
|
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 ConnectionPoolSettings |
DefaultClusterFactory.getConnectionPoolSettings(ConnectionPoolSettings connPoolSettings,
ConnectionPoolListener connPoolListener) |
Modifier and Type | Class and Description |
---|---|
class |
ConnectionPoolEventMulticaster
Deprecated.
register multiple command listeners instead
|
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
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
ConnectionPoolEventMulticaster.add(ConnectionPoolListener connectionPoolListener)
Deprecated.
Adds the given connection pool listener to the list of listeners to invoke on connection pool events.
|
void |
ConnectionPoolEventMulticaster.remove(ConnectionPoolListener connectionPoolListener)
Deprecated.
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 |
ConnectionPoolListenerMulticaster |
Modifier and Type | Field and Description |
---|---|
static ConnectionPoolListener |
EventListenerHelper.NO_OP_CONNECTION_POOL_LISTENER |
Modifier and Type | Field and Description |
---|---|
private java.util.List<ConnectionPoolListener> |
ConnectionPoolListenerMulticaster.connectionPoolListeners |
Modifier and Type | Method and Description |
---|---|
static ConnectionPoolListener |
EventListenerHelper.getConnectionPoolListener(ConnectionPoolSettings connectionPoolSettings) |
Constructor and Description |
---|
ConnectionPoolListenerMulticaster(java.util.List<ConnectionPoolListener> connectionPoolListeners) |
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.
|