|
Lines 355-360
Link Here
|
| 355 |
} |
355 |
} |
| 356 |
|
356 |
|
| 357 |
/** |
357 |
/** |
|
|
358 |
* Returns whether {@link #cancel()} will call {@link Thread#interrupt()}. |
| 359 |
* The default value is <code>false</code>. |
| 360 |
* |
| 361 |
* @return <code>true</code> if this job gets interrupted on cancel, and |
| 362 |
* <code>false</code> otherwise. |
| 363 |
* @see #setInterruptOnCancel(boolean) |
| 364 |
*/ |
| 365 |
public final boolean isInterruptOnCancel() { |
| 366 |
return super.isInterruptOnCancel(); |
| 367 |
} |
| 368 |
|
| 369 |
/** |
| 358 |
* Waits until this job is finished. This method will block the calling thread until the |
370 |
* Waits until this job is finished. This method will block the calling thread until the |
| 359 |
* job has finished executing, or until this thread has been interrupted. If the job |
371 |
* job has finished executing, or until this thread has been interrupted. If the job |
| 360 |
* has not been scheduled, this method returns immediately. |
372 |
* has not been scheduled, this method returns immediately. |
|
Lines 565-570
Link Here
|
| 565 |
public final void setUser(boolean value) { |
577 |
public final void setUser(boolean value) { |
| 566 |
super.setUser(value); |
578 |
super.setUser(value); |
| 567 |
} |
579 |
} |
|
|
580 |
/** |
| 581 |
* Sets whether {@link #cancel()} will call {@link Thread#interrupt()}. |
| 582 |
* The default value is <code>false</code>. |
| 583 |
* |
| 584 |
* @param value <code>true</code> if this job gets interrupted on cancel, and |
| 585 |
* <code>false</code> otherwise. |
| 586 |
* @see #isInterruptOnCancel() |
| 587 |
*/ |
| 588 |
public final void setInterruptOnCancel(boolean value) { |
| 589 |
super.setInterruptOnCancel(value); |
| 590 |
} |
| 568 |
|
591 |
|
| 569 |
/** |
592 |
/** |
| 570 |
* Sets the thread that this job is currently running in, or <code>null</code> |
593 |
* Sets the thread that this job is currently running in, or <code>null</code> |