Package com.mongodb.event
Class CommandEvent
java.lang.Object
com.mongodb.event.CommandEvent
- Direct Known Subclasses:
CommandFailedEvent,CommandStartedEvent,CommandSucceededEvent
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
An event representing a MongoDB database command.
- Since:
- 3.1
-
Constructor Summary
ConstructorsConstructorDescriptionCommandEvent(int requestId, ConnectionDescription connectionDescription, String commandName) Deprecated.Construct an instance. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets the name of the command.Deprecated.Gets the description of the connection to which the operation will be sent.intDeprecated.Gets the request identifier
-
Constructor Details
-
CommandEvent
Deprecated.Construct an instance.- Parameters:
requestId- the request idconnectionDescription- the connection descriptioncommandName- the command name
-
-
Method Details
-
getRequestId
public int getRequestId()Deprecated.Gets the request identifier- Returns:
- the request identifier
-
getConnectionDescription
Deprecated.Gets the description of the connection to which the operation will be sent.- Returns:
- the connection description
-
getCommandName
Deprecated.Gets the name of the command.- Returns:
- the command name
-