| 构造器和说明 |
|---|
DefaultTimer(int workerNum,
String name) |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
Copyright © 2021. All rights reserved.