public class JavaTimer extends AbstractTimer
running, 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, setTaskExecutorCopyright © 2022. All rights reserved.