public class ImmediateTimer extends AbstractTimer
running, taskExecutor| 构造器和说明 |
|---|
ImmediateTimer() |
ImmediateTimer(Executor e) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 ImmediateTimer()
public ImmediateTimer(Executor e)
Copyright © 2022. All rights reserved.