12 |
|
* provided to determine if the task completed normally or was |
13 |
|
* cancelled. |
14 |
|
* |
15 |
– |
* @since 1.5 |
16 |
– |
* |
17 |
– |
* @spec JSR-166 |
18 |
– |
* @revised $Date$ |
19 |
– |
* @editor $Author$ |
15 |
|
* @see FutureTask |
16 |
|
* @see Executor |
17 |
+ |
* @since 1.5 |
18 |
|
* @author Doug Lea |
19 |
|
*/ |
20 |
|
public interface Cancellable { |
24 |
|
* fail if the task has already completed, already been cancelled, |
25 |
|
* or could not be cancelled for some other reason. If successful, |
26 |
|
* and this task has not started when <tt>cancel</tt> is called, |
27 |
< |
* this task will never run. If the task has already started, |
27 |
> |
* this task should never run. If the task has already started, |
28 |
|
* then the <tt>interruptIfRunning</tt> parameter determines |
29 |
|
* whether the thread executing this task should be interrupted in |
30 |
|
* an attempt to stop the task. |