Uses of Interface
java.util.concurrent.ScheduledFuture
-
Packages that use ScheduledFuture 软件包 描述 java.util.concurrent 实用程序类通常用于并发编程。 -
-
Uses of ScheduledFuture in java.util.concurrent
Subinterfaces of ScheduledFuture in java.util.concurrent Modifier and Type 接口 描述 interface
RunnableScheduledFuture<V>
AScheduledFuture
那是Runnable
。Methods in java.util.concurrent that return ScheduledFuture Modifier and Type 方法 描述 ScheduledFuture<?>
ScheduledExecutorService. schedule(Runnable command, long delay, TimeUnit unit)
创建并执行在给定延迟后启用的单次操作。<V> ScheduledFuture<V>
ScheduledExecutorService. schedule(Callable<V> callable, long delay, TimeUnit unit)
创建并执行在给定延迟后启用的ScheduledFuture。ScheduledFuture<?>
ScheduledThreadPoolExecutor. schedule(Runnable command, long delay, TimeUnit unit)
<V> ScheduledFuture<V>
ScheduledThreadPoolExecutor. schedule(Callable<V> callable, long delay, TimeUnit unit)
ScheduledFuture<?>
ScheduledExecutorService. scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)
创建并执行在给定的初始延迟之后,随后以给定的时间段首先启用的周期性动作; 即处决将在initialDelay
之后开始,然后是initialDelay + period
,然后是initialDelay + 2 * period
,等等。ScheduledFuture<?>
ScheduledThreadPoolExecutor. scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)
ScheduledFuture<?>
ScheduledExecutorService. scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)
创建并执行在给定的初始延迟之后首先启用的定期动作,随后在一个执行的终止和下一个执行的开始之间给定的延迟。ScheduledFuture<?>
ScheduledThreadPoolExecutor. scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)
-