-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
cancel()
Attempts to cancel theTimerTask
associated with this handle.boolean
isCancelled()
Returnstrue
if and only if theTimerTask
associated with this handle has been cancelled.boolean
isExpired()
Returnstrue
if and only if theTimerTask
associated with this handle has been expired.TimerTask
task()
Returns theTimerTask
which is associated with this handle.Timer
timer()
Returns theTimer
that created this handle.
-
-
-
Method Detail
-
isExpired
boolean isExpired()
Returnstrue
if and only if theTimerTask
associated with this handle has been expired.
-
isCancelled
boolean isCancelled()
Returnstrue
if and only if theTimerTask
associated with this handle has been cancelled.
-
cancel
boolean cancel()
Attempts to cancel theTimerTask
associated with this handle. If the task has been executed or cancelled already, it will return with no side effect.- Returns:
- True if the cancellation completed successfully, otherwise false
-
-