public final class Timer extends Object
Modifier and Type | Method and Description |
---|---|
static io.netty.util.Timeout |
newTimeout(io.netty.util.TimerTask task,
long delay,
TimeUnit unit)
Executes one-shot timer task on shared thread pool.
|
public static io.netty.util.Timeout newTimeout(io.netty.util.TimerTask task, long delay, TimeUnit unit)
task
- timer task to executedelay
- before executing the taskunit
- of delay