ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/RunnableScheduledFuture.java
Revision: 1.2
Committed: Tue May 17 13:08:08 2005 UTC (19 years ago) by dl
Branch: MAIN
Changes since 1.1: +8 -0 lines
Log Message:
Add documentation; adjust STPE internal types

File Contents

# User Rev Content
1 peierls 1.1 /*
2     * Written by Doug Lea with assistance from members of JCP JSR-166
3     * Expert Group and released to the public domain, as explained at
4     * http://creativecommons.org/licenses/publicdomain
5     */
6    
7     package java.util.concurrent;
8    
9     /**
10     * A scheduled future that is also runnable.
11     * @see FutureTask
12     * @see Executor
13     * @since 1.6
14     * @author Doug Lea
15     * @param <V> The result type returned by this Future's <tt>get</tt> method
16     */
17     public interface RunnableScheduledFuture<V> extends Runnable, ScheduledFuture<V> {
18 dl 1.2
19     /**
20     * Returns true if this is a periodic task. A periodic task may
21     * re-run according to some schedule. A non-periodic task can be
22     * run only once.
23     * @return true if this task is periodic.
24     */
25     boolean isPeriodic();
26 peierls 1.1 }