public interface Timeout
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
cancel()
Attempts to cancel the
TimerTask associated with this handle. |
boolean |
isCancelled()
Returns
true if and only if the TimerTask associated
with this handle has been cancelled. |
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. |
Timer timer()
Timer that created this handle.Timer that created this handleTimerTask task()
TimerTask which is associated with this handle.TimerTask which is associated with this handleboolean isExpired()
true if and only if the TimerTask associated
with this handle has been expired.true if and only if the TimerTask associatedboolean isCancelled()
true if and only if the TimerTask associated
with this handle has been cancelled.true if and only if the TimerTask associatedboolean cancel()
TimerTask associated with this handle.
If the task has been executed or cancelled already, it will return with
no side effect.Copyright © 2025. All rights reserved.