Most visited

Recently visited

Added in API level 9

RunnableScheduledFuture

public interface RunnableScheduledFuture
implements RunnableFuture<V>, ScheduledFuture<V>

java.util.concurrent.RunnableScheduledFuture<V>


ScheduledFutureRunnable run方法的成功执行导致完成Future并允许访问其结果。

也可以看看:

Summary

Public methods

abstract boolean isPeriodic()

如果此任务是定期的,则返回 true

Inherited methods

From interface java.util.concurrent.RunnableFuture
From interface java.lang.Runnable
From interface java.util.concurrent.Future
From interface java.util.concurrent.Delayed
From interface java.lang.Comparable

Public methods

isPeriodic

Added in API level 9
boolean isPeriodic ()

如果此任务是定期的,则返回true 定期任务可以按照某个时间表重新运行。 非周期性任务只能运行一次。

Returns
boolean true if this task is periodic

Hooray!