| Constructor and Description |
|---|
DefaultTimer(int workerNum,
String name) |
| Modifier and Type | Method and Description |
|---|---|
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. |
public DefaultTimer(int workerNum,
String name)
public Timeout newTimeout(TimerTask task, long delay, TimeUnit unit)
TimerTimerTask for one-time execution after
the specified delay.newTimeout in interface TimerCopyright © 2024. All rights reserved.