T - The capture for Identifying the commandId of this commandU - The capture for generating the response of this commandpublic class Command<T extends CommandIdInterface,U extends CommandResponse<T>>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Command.State
An enum denoting the status of a command.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Command(T commandId,
java.lang.Class<U> responseClass) |
| Modifier and Type | Method and Description |
|---|---|
T |
getCommandId() |
void |
setTimeout(long timeout)
Set the timeout of this command.
|
java.lang.String |
toString() |
public T getCommandId()
public void setTimeout(long timeout)
timeout - The timeout which has to be used.public java.lang.String toString()
toString in class java.lang.Object