ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/jdk7/java/util/concurrent/ScheduledExecutorService.java
(Generate patch)

Comparing jsr166/src/jdk7/java/util/concurrent/ScheduledExecutorService.java (file contents):
Revision 1.2 by jsr166, Wed Jan 16 01:39:37 2013 UTC vs.
Revision 1.3 by jsr166, Sat Jul 20 20:15:46 2013 UTC

# Line 16 | Line 16 | package java.util.concurrent;
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   *
# Line 33 | Line 33 | package java.util.concurrent;
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>
# Line 88 | Line 88 | public interface ScheduledExecutorServic
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines