public interface TimerTask
Timer.newTimeout(TimerTask, long, TimeUnit).| Modifier and Type | Method and Description |
|---|---|
default void |
cancelled(Timeout timeout)
Called for
TimerTasks that are successfully canceled via Timeout.cancel(). |
void |
run(Timeout timeout)
Executed after the delay specified with
Timer.newTimeout(TimerTask, long, TimeUnit). |
void run(Timeout timeout) throws Exception
Timer.newTimeout(TimerTask, long, TimeUnit).timeout - a handle which is associated with this taskExceptiondefault void cancelled(Timeout timeout)
TimerTasks that are successfully canceled via Timeout.cancel(). Overriding this
method allows to for example run some cleanup.timeout - a handle which is associated with this taskCopyright © 2008–2025 The Netty Project. All rights reserved.