接口 TimerTask
public interface TimerTask
A task which is executed after the delay specified with
Timer.newTimeout(TimerTask, long, TimeUnit) (TimerTask, long, TimeUnit)}.
Copy from dubbo, see here for more details.
-
方法概要
修饰符和类型方法说明voidExecuted after the delay specified withTimer.newTimeout(TimerTask, long, TimeUnit).
-
方法详细资料
-
run
Executed after the delay specified withTimer.newTimeout(TimerTask, long, TimeUnit).- 参数:
timeout- a handle which is associated with this task- 抛出:
Exception- if an error occurs
-