16 |
|
* {@code scheduleWithFixedDelay} methods create and execute tasks |
17 |
|
* that run periodically until cancelled. |
18 |
|
* |
19 |
< |
* <p>Commands submitted using the {@link Executor#execute} and |
20 |
< |
* {@link ExecutorService} {@code submit} methods are scheduled with |
21 |
< |
* a requested delay of zero. Zero and negative delays (but not |
19 |
> |
* <p>Commands submitted using the {@link Executor#execute(Runnable)} |
20 |
> |
* and {@link ExecutorService} {@code submit} methods are scheduled |
21 |
> |
* with a requested delay of zero. Zero and negative delays (but not |
22 |
|
* periods) are also allowed in {@code schedule} methods, and are |
23 |
|
* treated as requests for immediate execution. |
24 |
|
* |
33 |
|
* which the task is enabled due to network time synchronization |
34 |
|
* protocols, clock drift, or other factors. |
35 |
|
* |
36 |
< |
* The {@link Executors} class provides convenient factory methods for |
36 |
> |
* <p>The {@link Executors} class provides convenient factory methods for |
37 |
|
* the ScheduledExecutorService implementations provided in this package. |
38 |
|
* |
39 |
|
* <h3>Usage Example</h3> |
88 |
|
* @param callable the function to execute |
89 |
|
* @param delay the time from now to delay execution |
90 |
|
* @param unit the time unit of the delay parameter |
91 |
+ |
* @param <V> the type of the callable's result |
92 |
|
* @return a ScheduledFuture that can be used to extract result or cancel |
93 |
|
* @throws RejectedExecutionException if the task cannot be |
94 |
|
* scheduled for execution |