jdk/src/share/classes/java/util/concurrent/RunnableScheduledFuture.java
changeset 18790 d25399d849bc
parent 9242 ef138d47df58
equal deleted inserted replaced
18789:b518cd4045bc 18790:d25399d849bc
    35 
    35 
    36 package java.util.concurrent;
    36 package java.util.concurrent;
    37 
    37 
    38 /**
    38 /**
    39  * A {@link ScheduledFuture} that is {@link Runnable}. Successful
    39  * A {@link ScheduledFuture} that is {@link Runnable}. Successful
    40  * execution of the <tt>run</tt> method causes completion of the
    40  * execution of the {@code run} method causes completion of the
    41  * <tt>Future</tt> and allows access to its results.
    41  * {@code Future} and allows access to its results.
    42  * @see FutureTask
    42  * @see FutureTask
    43  * @see Executor
    43  * @see Executor
    44  * @since 1.6
    44  * @since 1.6
    45  * @author Doug Lea
    45  * @author Doug Lea
    46  * @param <V> The result type returned by this Future's <tt>get</tt> method
    46  * @param <V> The result type returned by this Future's {@code get} method
    47  */
    47  */
    48 public interface RunnableScheduledFuture<V> extends RunnableFuture<V>, ScheduledFuture<V> {
    48 public interface RunnableScheduledFuture<V> extends RunnableFuture<V>, ScheduledFuture<V> {
    49 
    49 
    50     /**
    50     /**
    51      * Returns true if this is a periodic task. A periodic task may
    51      * Returns {@code true} if this task is periodic. A periodic task may
    52      * re-run according to some schedule. A non-periodic task can be
    52      * re-run according to some schedule. A non-periodic task can be
    53      * run only once.
    53      * run only once.
    54      *
    54      *
    55      * @return true if this task is periodic
    55      * @return {@code true} if this task is periodic
    56      */
    56      */
    57     boolean isPeriodic();
    57     boolean isPeriodic();
    58 }
    58 }