-
public interface Timeout
Timeout.java
-
-
方法详细资料
-
timer
Timer timer()
获取时间轮引用
- 返回:
- the timer
-
task
TimerTask task()
获取需要执行的任务
- 返回:
- the timer task
-
isExpired
boolean isExpired()
定时任务是否过期
- 返回:
- the boolean
-
isCancelled
boolean isCancelled()
定时任务是否取消
- 返回:
- the boolean
-
cancel
boolean cancel()
- 返回:
- 如果取消成功,则返回true
Copyright © 2021. All rights reserved.