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 变量和类型 接口 描述 interfaceRunnableScheduledFuture<V>Methods in java.util.concurrent that return ScheduledFuture 变量和类型 方法 描述 ScheduledFuture<?>ScheduledExecutorService. schedule(Runnable command, long delay, TimeUnit unit)提交在给定延迟后启用的一次性任务。<V> ScheduledFuture<V>ScheduledExecutorService. schedule(Callable<V> callable, long delay, TimeUnit unit)提交一个返回值的一次性任务,该任务在给定的延迟后变为启用状态。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之后initialDelay + 2 * period,依此类推。ScheduledFuture<?>ScheduledThreadPoolExecutor. scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)提交定期操作,该操作在给定的初始延迟后首先启用,随后在给定的时间段内启用; 也就是说,执行将在initialDelay,然后是initialDelay + period,然后是initialDelay + 2 * period之后initialDelay + 2 * period,依此类推。ScheduledFuture<?>ScheduledExecutorService. scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)提交在给定的初始延迟之后首先启用的定期动作,并且随后在一次执行的终止和下一次执行的开始之间给定延迟。ScheduledFuture<?>ScheduledThreadPoolExecutor. scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)提交在给定的初始延迟之后首先启用的定期动作,并且随后在一次执行的终止和下一次执行的开始之间给定延迟。
-