| Package | Description |
|---|---|
| com.mongodb |
This package is the main entry point to the MongoDB Java Driver, and it contains the classes for the existing API from 2.x versions.
|
| 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 |
|---|---|
List<CommandListener> |
MongoClientOptions.getCommandListeners()
Gets the list of added
CommandListener. |
| Modifier and Type | Method and Description |
|---|---|
MongoClientOptions.Builder |
MongoClientOptions.Builder.addCommandListener(CommandListener commandListener)
Adds the given command listener.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
CommandListenerMulticaster
A multicaster for connection events.
|
| Modifier and Type | Method and Description |
|---|---|
List<CommandListener> |
CommandListenerMulticaster.getCommandListeners()
Gets the command listeners.
|
| Constructor and Description |
|---|
CommandListenerMulticaster(List<CommandListener> commandListeners)
Construct an instance with the given list of command listeners
|
Copyright © 2016. All Rights Reserved.