public interface RunnableScheduledFuture
implements RunnableFuture<V>, ScheduledFuture<V>
| java.util.concurrent.RunnableScheduledFuture<V> |
ScheduledFuture即Runnable 。 run方法的成功执行导致完成Future并允许访问其结果。
也可以看看:
公共方法(Public methods) |
|
|---|---|
abstract boolean |
isPeriodic() 如果此任务是定期的,则返回 |
继承方法(Inherited methods) |
|
|---|---|
java.util.concurrent.RunnableFuture
|
|
java.lang.Runnable
|
|
java.util.concurrent.Future
|
|
java.util.concurrent.Delayed
|
|
java.lang.Comparable
|
|
boolean isPeriodic ()
如果此任务是定期的,则返回true 。 定期任务可以按照某个时间表重新运行。 非周期性任务只能运行一次。
| 返回(Returns) | |
|---|---|
boolean |
true if this task is periodic |