程序包 | 说明 |
---|---|
org.jboss.netty.util |
Utility classes used across multiple packages.
|
限定符和类型 | 方法和说明 |
---|---|
Timeout |
Timer.newTimeout(TimerTask task,
long delay,
java.util.concurrent.TimeUnit unit)
Schedules the specified
TimerTask for one-time execution after
the specified delay. |
Timeout |
HashedWheelTimer.newTimeout(TimerTask task,
long delay,
java.util.concurrent.TimeUnit unit) |
限定符和类型 | 方法和说明 |
---|---|
java.util.Set<Timeout> |
Timer.stop()
Releases all resources acquired by this
Timer and cancels all
tasks which were scheduled but not executed yet. |
java.util.Set<Timeout> |
HashedWheelTimer.stop() |
限定符和类型 | 方法和说明 |
---|---|
void |
TimerTask.run(Timeout timeout)
Executed after the delay specified with
Timer.newTimeout(TimerTask, long, TimeUnit) . |