public class ScheduledExecutorTimer extends AbstractTimer
running, taskExecutor| 构造器和说明 |
|---|
ScheduledExecutorTimer(ScheduledExecutorService scheduledExecutor,
Executor taskExecutor) |
| 限定符和类型 | 方法和说明 |
|---|---|
Timeout |
newTimeout(Runnable task,
long delay,
TimeUnit unit) |
Timeout |
newTimeout(TimerTask task,
long delay,
TimeUnit unit)
Schedules the specified
TimerTask for one-time execution after
the specified delay. |
Set<Timeout> |
stop()
Releases all resources acquired by this
Timer and cancels all
tasks which were scheduled but not executed yet. |
getTaskExecutor, isDistinctSupported, isRunning, setTaskExecutorpublic ScheduledExecutorTimer(ScheduledExecutorService scheduledExecutor, Executor taskExecutor)
Copyright © 2022. All rights reserved.