接口 TimerTask
-
public interface TimerTaskA task which is executed after the delay specified withTimer.newTimeout(TimerTask, long, TimeUnit)(TimerTask, long, TimeUnit)}.
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidrun(Timeout timeout)Executed after the delay specified withTimer.newTimeout(TimerTask, long, TimeUnit).
-
-
-
方法详细资料
-
run
void run(Timeout timeout) throws Exception
Executed after the delay specified withTimer.newTimeout(TimerTask, long, TimeUnit).- 参数:
timeout- a handle which is associated with this task- 抛出:
Exception
-
-