Interface Timeout
-
Method Summary
Modifier and TypeMethodDescriptionbooleancancel()Attempts to cancel theTimerTaskassociated with this handle.booleanReturnstrueif and only if theTimerTaskassociated with this handle has been cancelled.booleanReturnstrueif and only if theTimerTaskassociated with this handle has been expired.task()Returns theTimerTaskwhich is associated with this handle.timer()Returns theTimerthat created this handle.
-
Method Details
-
timer
-
task
-
isExpired
boolean isExpired()Returnstrueif and only if theTimerTaskassociated with this handle has been expired. -
isCancelled
boolean isCancelled()Returnstrueif and only if theTimerTaskassociated with this handle has been cancelled. -
cancel
boolean cancel()Attempts to cancel theTimerTaskassociated 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
-