|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.acelogger.execution.task.CancelableTask
public class CancelableTask

A Runnable implementation and a wrapper that supports canceling it's task execution.
| Constructor Summary | |
|---|---|
CancelableTask(Runnable task)
Constructs a new CancelableTask for the given task. |
|
| Method Summary | |
|---|---|
Boolean |
cancel()
Try to cancel the task execution. |
Boolean |
hasAlreadyRun()
Indicates that the task has already run. |
void |
run()
|
Boolean |
shouldRun()
Indicates that the task should run. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CancelableTask(Runnable task)
task - The task to be monitored.| Method Detail |
|---|
public void run()
run in interface Runnablepublic Boolean hasAlreadyRun()
public Boolean shouldRun()
public Boolean cancel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||