org.d_haven.event.command
public interface CommandManager
Method Summary | |
---|---|
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.
|
Parameters: command the command to enqueue and run
Throws: SinkException if the command cannot be accepted.
Parameters: handler the new Handler
Throws: IllegalArgumentException if "handler" is null.
Parameters: clear out currently enqueued commmands.