标签:service task time dex trigger pool java callable ice
java.util.concurrent
public class ScheduledThreadPoolExecutor extends ThreadPoolExecutor implements ScheduledExecutorService
ScheduledFutureTask(Runnable r, V result, long triggerTime,
long sequenceNumber)
ScheduledFutureTask(Runnable r, V result, long triggerTime,
long period, long sequenceNumber)
ScheduledFutureTask(Callable<V> callable, long triggerTime,
long sequenceNumber)
ScheduledFutureTask
来执行周期任务DelayedWorkQueue
来存储任务,DelayedWorkQueue
是无界延迟队列DelayQueue
的一种。run-after-shutdown
参数,在池被关闭(shutdown)之后支持可选的逻辑来决定是否继续运行周期或延迟任务。线程池 一 ScheduledThreadPoolExecutor
标签:service task time dex trigger pool java callable ice
原文地址:https://www.cnblogs.com/loveer/p/11414730.html