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 |
} |