| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
cancel()
Attempts to cancel the
TimerTask associated with this handle. |
long |
deadline()
是否已经最后执行期限.
|
boolean |
isCancelled()
Returns
true if and only if the TimerTask associated
with this handle has been cancelled. |
default boolean |
isDefault()
是否为自定义的一个timeout.
|
boolean |
isExpired()
Returns
true if and only if the TimerTask associated
with this handle has been expired. |
TimerTask |
task()
Returns the
TimerTask which is associated with this handle. |
Timer |
timer()
Returns the
Timer that created this handle. |
TimerTask task()
TimerTask which is associated with this handle.boolean isExpired()
true if and only if the TimerTask associated
with this handle has been expired.boolean isCancelled()
true if and only if the TimerTask associated
with this handle has been cancelled.boolean cancel()
TimerTask associated with this handle.
If the task has been executed or cancelled already, it will return with
no side effect.long deadline()
default boolean isDefault()
Copyright © 2022 dromara. All rights reserved.