21 |
|
* without any real-time guarantees about when, after they are |
22 |
|
* enabled, they will commence. Tasks scheduled for exactly the same |
23 |
|
* execution time are enabled in first-in-first-out (FIFO) order of |
24 |
< |
* submission. If {@link #setRemoveOnCancelPolicy} is set {@code true} |
24 |
> |
* submission. If {@link #setRemoveOnCancelPolicy} is set {@code true}, |
25 |
|
* cancelled tasks are automatically removed from the work queue. |
26 |
|
* |
27 |
|
* <p>While this class inherits from {@link ThreadPoolExecutor}, a few |
643 |
|
* |
644 |
|
* @param value if {@code true}, remove on cancellation, else don't |
645 |
|
* @see #getRemoveOnCancelPolicy |
646 |
+ |
* @since 1.7 |
647 |
|
*/ |
648 |
|
public void setRemoveOnCancelPolicy(boolean value) { |
649 |
|
removeOnCancel = value; |
655 |
|
* |
656 |
|
* @return {@code true} if cancelled tasks are removed from the queue |
657 |
|
* @see #setRemoveOnCancelPolicy |
658 |
+ |
* @since 1.7 |
659 |
|
*/ |
660 |
|
public boolean getRemoveOnCancelPolicy() { |
661 |
|
return removeOnCancel; |