|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.photoviewer.client.util.CommandRunner
This class is somewhat like a thread pool that has one thread in it. It is used to start executing user requests, however, if a 2nd user request comes in while there is a request running, this class will cleanly stop the running task, and then start the new task (thread).
Constructor Summary | |
CommandRunner()
Construct the CommandRunner. |
Method Summary | |
void |
execute(Killable target)
Main external API. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CommandRunner()
Method Detail |
public void execute(Killable target)
target
- Killable (Runnable) to run
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |