|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Something, usually a task, that can be cancelled. Cancellation is performed by the cancel method. Additional methods are provided to determine if the task completed normally or was cancelled.
FutureTask,
Executor| Method Summary | |
boolean |
cancel(boolean mayInterruptIfRunning)
Attempt to cancel execution of this task. |
boolean |
isCancelled()
Returns true if this task was cancelled before it completed normally. |
boolean |
isDone()
Returns true if this task completed. |
| Method Detail |
public boolean cancel(boolean mayInterruptIfRunning)
mayInterruptIfRunning - true if the thread executing this
task should be interrupted; otherwise, in-progress tasks are allowed
to complete
public boolean isCancelled()
public boolean isDone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||