package java.util.concurrent; public interface RunnableScheduledFuture<V> extends RunnableFuture<V>, ScheduledFuture<V> { //若是这是一个按期任务,则返回 true boolean isPeriodic(); }
类型参数:html
V
- 此 Future 的 get 方法所返回的结果类型。java
全部超级接口:api
Comparable< Delayed>, Delayed, Future<V>, Runnable, RunnableFuture<V>, ScheduledFuture<V>spa
做为 Runnable
的 ScheduledFuture
。成功执行 run 方法能够完成 Future 并容许访问其结果。.net
从接口 java.util.concurrent.RunnableFuture 继承的方法线程
run
code
从接口 java.util.concurrent.Delayed 继承的方法htm
getDelay
blog
从接口 java.lang.Comparable 继承的方法继承
从接口 java.util.concurrent.Future 继承的方法
cancel, get, get, isCancelled, isDone
boolean isPeriodic()
若是这是一个按期任务,则返回 true。按期任务能够根据计划从新运行。非按期任务只能运行一次。
返回:
若是此任务是按期的,则返回 true