public abstract class PersistentEntity.ReadOnlyCommandContext<R> extends Object
| Constructor and Description |
|---|
ReadOnlyCommandContext() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
commandFailed(Throwable cause)
Reply with a negative acknowledgment.
|
void |
invalidCommand(String message)
Reply with a negative acknowledgment using the standard
InvalidCommandException. |
abstract void |
reply(R msg)
Send reply to a command.
|
public abstract void commandFailed(Throwable cause)
public void invalidCommand(String message)
InvalidCommandException.public abstract void reply(R msg)
R must be the type defined by
the command.