Package org.onlab.util
Class Timer
- java.lang.Object
-
- org.onlab.util.Timer
-
public final class Timer extends java.lang.Object
Hashed-wheel timer singleton. Care must be taken to shutdown the timer only when the VM is ready to exit.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
newTimeout
public 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.- Parameters:
task
- timer task to executedelay
- before executing the taskunit
- of delay- Returns:
- a handle which is associated with the specified task
-
-