public interface TimerTask
Timer.newTimeout(TimerTask, long, TimeUnit)
.限定符和类型 | 方法和说明 |
---|---|
void |
run(Timeout timeout)
Executed after the delay specified with
Timer.newTimeout(TimerTask, long, TimeUnit) . |
void run(Timeout timeout) throws java.lang.Exception
Timer.newTimeout(TimerTask, long, TimeUnit)
.timeout
- a handle which is associated with this taskjava.lang.Exception