public interface CommandManager
| Modifier and Type | Method and Description |
|---|---|
void |
enqueueCommand(Command command)
Add a command to the manager for it to execute.
|
void |
setCommandFailureHandler(CommandFailureHandler handler)
Set the failure handler that the application can use to override
what happens when a command failure happens.
|
void |
start()
Start or restart the CommandManager so that it can accept more
commands.
|
void |
stop(boolean clear)
Stop the CommandManager so that it can stop accepting commands.
|
void setCommandFailureHandler(CommandFailureHandler handler)
handler - the new Handlerjava.lang.IllegalArgumentException - if "handler" is null.void enqueueCommand(Command command) throws SinkException
command - the command to enqueue and runSinkException - if the command cannot be accepted.void start()
void stop(boolean clear)
clear - out currently enqueued commmands.