Netty的定时器

Netty的定时器

取消定时任务:

 /**
     * Attempts to cancel the {@link TimerTask} associated with this handle.
     * If the task has been executed or cancelled already, it will return with
     * no side effect.
     *
     * @return True if the cancellation completed successfully, otherwise false
     */
    boolean cancel();

调用Timeout.cancel().

你可能感兴趣的:(Netty的定时器)