42 |
|
* removed from the work queue at time of cancellation. |
43 |
|
* |
44 |
|
* <p>Successive executions of a periodic task scheduled via |
45 |
< |
* {@link #scheduleAtFixedRate} or |
46 |
< |
* {@link #scheduleWithFixedDelay} do not overlap. While different |
47 |
< |
* executions may be performed by different threads, the effects of |
48 |
< |
* prior executions <a |
49 |
< |
* href="package-summary.html#MemoryVisibility"><i>happen-before</i></a> |
45 |
> |
* {@link #scheduleAtFixedRate scheduleAtFixedRate} or |
46 |
> |
* {@link #scheduleWithFixedDelay scheduleWithFixedDelay} |
47 |
> |
* do not overlap. While different executions may be performed by |
48 |
> |
* different threads, the effects of prior executions |
49 |
> |
* <a href="package-summary.html#MemoryVisibility"><i>happen-before</i></a> |
50 |
|
* those of subsequent ones. |
51 |
|
* |
52 |
|
* <p>While this class inherits from {@link ThreadPoolExecutor}, a few |
780 |
|
* For tasks submitted via one of the {@code schedule} |
781 |
|
* methods, the element will be identical to the returned |
782 |
|
* {@code ScheduledFuture}. For tasks submitted using |
783 |
< |
* {@link #execute}, the element will be a zero-delay {@code |
784 |
< |
* ScheduledFuture}. |
783 |
> |
* {@link #execute execute}, the element will be a |
784 |
> |
* zero-delay {@code ScheduledFuture}. |
785 |
|
* @throws SecurityException {@inheritDoc} |
786 |
|
*/ |
787 |
|
public List<Runnable> shutdownNow() { |
793 |
|
* Each element of this list is a {@link ScheduledFuture}. |
794 |
|
* For tasks submitted via one of the {@code schedule} methods, the |
795 |
|
* element will be identical to the returned {@code ScheduledFuture}. |
796 |
< |
* For tasks submitted using {@link #execute}, the element will be a |
797 |
< |
* zero-delay {@code ScheduledFuture}. |
796 |
> |
* For tasks submitted using {@link #execute execute}, the element |
797 |
> |
* will be a zero-delay {@code ScheduledFuture}. |
798 |
|
* |
799 |
|
* <p>Iteration over this queue is <em>not</em> guaranteed to traverse |
800 |
|
* tasks in the order in which they will execute. |