Package cn.sliew.milky.common.timewheel
Interface TimerTask
-
public interface TimerTaskA task which is executed after the delay specified withTimer.newTimeout(TimerTask, long, TimeUnit)(TimerTask, long, TimeUnit)}.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrun(Timeout timeout)Executed after the delay specified withTimer.newTimeout(TimerTask, long, TimeUnit).
-
-
-
Method Detail
-
run
void run(Timeout timeout) throws Exception
Executed after the delay specified withTimer.newTimeout(TimerTask, long, TimeUnit).- Parameters:
timeout- a handle which is associated with this task- Throws:
Exception
-
-