public final class Timer
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static org.jboss.netty.util.HashedWheelTimer |
getTimer()
Deprecated.
in 1.11.0
|
static io.netty.util.Timeout |
newTimeout(io.netty.util.TimerTask task,
long delay,
java.util.concurrent.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, java.util.concurrent.TimeUnit unit)
task
- timer task to executedelay
- before executing the taskunit
- of delay@Deprecated public static org.jboss.netty.util.HashedWheelTimer getTimer()