Class Timer

  • public final class Timer
    extends Object
    Hashed-wheel timer singleton. Care must be taken to shutdown the timer only when the VM is ready to exit.
    • Method Detail

      • newTimeout

        public static io.netty.util.Timeout newTimeout​(io.netty.util.TimerTask task,
                                                       long delay,
                                                       TimeUnit unit)
        Executes one-shot timer task on shared thread pool.
        task - timer task to execute
        delay - before executing the task
        unit - of delay
        a handle which is associated with the specified task