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 | Method and Description |
---|---|
Cluster |
ClusterFactory.create(ClusterSettings settings,
ServerSettings serverSettings,
ConnectionPoolSettings connectionPoolSettings,
StreamFactory streamFactory,
StreamFactory heartbeatStreamFactory,
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,
List<MongoCredential> credentialList,
ClusterListener clusterListener,
ConnectionPoolListener connectionPoolListener,
ConnectionListener connectionListener) |
Cluster |
DefaultClusterFactory.create(ClusterSettings settings,
ServerSettings serverSettings,
ConnectionPoolSettings connectionPoolSettings,
StreamFactory streamFactory,
StreamFactory heartbeatStreamFactory,
List<MongoCredential> credentialList,
ClusterListener clusterListener,
ConnectionPoolListener connectionPoolListener,
ConnectionListener connectionListener,
CommandListener commandListener)
Creates a cluster with the given settings.
|
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 | 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 |
---|---|
class |
JMXConnectionPoolListener
A connection pool listener that manages a set of JMX MBeans, one for each connection pool.
|
Copyright © 2016. All Rights Reserved.