Package io.netty.util
Interface Timeout
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancancel()Attempts to cancel theTimerTaskassociated with this handle.booleanisCancelled()Returnstrueif and only if theTimerTaskassociated with this handle has been cancelled.booleanisExpired()Returnstrueif and only if theTimerTaskassociated with this handle has been expired.TimerTasktask()Returns theTimerTaskwhich is associated with this handle.Timertimer()Returns theTimerthat created this handle.
-
-
-
Method Detail
-
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
-
-