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

Comparing jsr166/src/main/java/util/concurrent/ScheduledThreadPoolExecutor.java (file contents):
Revision 1.42 by jsr166, Mon Sep 10 21:16:06 2007 UTC vs.
Revision 1.43 by jsr166, Tue Sep 11 16:07:19 2007 UTC

# Line 21 | Line 21 | import java.util.*;
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
# Line 643 | Line 643 | public class ScheduledThreadPoolExecutor
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;
# Line 654 | Line 655 | public class ScheduledThreadPoolExecutor
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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines