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 |
---|---|
ConnectionDescription |
Connection.getDescription()
Gets the description of the connection.
|
ConnectionDescription |
AsyncConnection.getDescription()
Gets the description of the connection.
|
Modifier and Type | Method and Description |
---|---|
ConnectionDescription |
CommandEvent.getConnectionDescription()
Gets the description of the connection to which the operation will be sent.
|
Constructor and Description |
---|
CommandEvent(int requestId,
ConnectionDescription connectionDescription,
String commandName)
Construct an instance.
|
CommandFailedEvent(int requestId,
ConnectionDescription connectionDescription,
String commandName,
long elapsedTimeNanos,
Throwable throwable)
Construct an instance.
|
CommandStartedEvent(int requestId,
ConnectionDescription connectionDescription,
String databaseName,
String commandName,
BsonDocument command)
Construct an instance.
|
CommandSucceededEvent(int requestId,
ConnectionDescription connectionDescription,
String commandName,
BsonDocument response,
long elapsedTimeNanos)
Construct an instance.
|
Copyright © 2016. All Rights Reserved.