Package com.mongodb.event
Class CommandEvent
- java.lang.Object
-
- com.mongodb.event.CommandEvent
-
- Direct Known Subclasses:
CommandFailedEvent
,CommandStartedEvent
,CommandSucceededEvent
@Deprecated(since="2021-05-27") public abstract class CommandEvent extends java.lang.Object
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
Constructors Constructor Description CommandEvent(int requestId, ConnectionDescription connectionDescription, java.lang.String commandName)
Deprecated.Construct an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getCommandName()
Deprecated.Gets the name of the command.ConnectionDescription
getConnectionDescription()
Deprecated.Gets the description of the connection to which the operation will be sent.int
getRequestId()
Deprecated.Gets the request identifier
-
-
-
Constructor Detail
-
CommandEvent
public CommandEvent(int requestId, ConnectionDescription connectionDescription, java.lang.String commandName)
Deprecated.Construct an instance.- Parameters:
requestId
- the request idconnectionDescription
- the connection descriptioncommandName
- the command name
-
-
Method Detail
-
getRequestId
public int getRequestId()
Deprecated.Gets the request identifier- Returns:
- the request identifier
-
getConnectionDescription
public ConnectionDescription getConnectionDescription()
Deprecated.Gets the description of the connection to which the operation will be sent.- Returns:
- the connection description
-
getCommandName
public java.lang.String getCommandName()
Deprecated.Gets the name of the command.- Returns:
- the command name
-
-