接口的使用
org.dromara.dynamictp.common.timer.Timeout
使用Timeout的程序包
-
org.dromara.dynamictp.common.timer中Timeout的使用
修饰符和类型方法说明HashedWheelTimer.newTimeout(TimerTask task, long delay, TimeUnit unit) Timer.newTimeout(TimerTask task, long delay, TimeUnit unit) Schedules the specifiedTimerTaskfor one-time execution after the specified delay.返回变量类型为Timeout的类型的org.dromara.dynamictp.common.timer中的方法修饰符和类型方法说明HashedWheelTimer.stop()Timer.stop()Releases all resources acquired by thisTimerand cancels all tasks which were scheduled but not executed yet.修饰符和类型方法说明voidExecuted after the delay specified withTimer.newTimeout(TimerTask, long, TimeUnit).