public abstract class CommandEvent
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
commandName |
private ConnectionDescription |
connectionDescription |
private int |
requestId |
| Constructor and Description |
|---|
CommandEvent(int requestId,
ConnectionDescription connectionDescription,
java.lang.String commandName)
Construct an instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCommandName()
Gets the name of the command.
|
ConnectionDescription |
getConnectionDescription()
Gets the description of the connection to which the operation will be sent.
|
int |
getRequestId()
Gets the request identifier
|
private final int requestId
private final ConnectionDescription connectionDescription
private final java.lang.String commandName
public CommandEvent(int requestId,
ConnectionDescription connectionDescription,
java.lang.String commandName)
requestId - the request idconnectionDescription - the connection descriptioncommandName - the command namepublic int getRequestId()
public ConnectionDescription getConnectionDescription()
public java.lang.String getCommandName()