|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CommandManager
Created by IntelliJ IDEA. User: bloritsch Date: May 3, 2004 Time: 4:19:52 PM To change this template use File | Settings | File Templates.
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. |
Method Detail |
---|
void setCommandFailureHandler(CommandFailureHandler handler)
handler
- the new Handler
java.lang.IllegalArgumentException
- if "handler" is null.void enqueueCommand(Command command) throws SinkException
command
- the command to enqueue and run
SinkException
- if the command cannot be accepted.void start()
void stop(boolean clear)
clear
- out currently enqueued commmands.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |