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 | 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 |
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 | 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.
|
Copyright © 2016. All Rights Reserved.