Package org.jboss.netty.util
Interface Timeout
- All Known Implementing Classes:
HashedWheelTimer.HashedWheelTimeout
public interface Timeout
-
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancels theTimerTaskassociated with this handle.getTask()Returns theTimerTaskwhich is associated with this handle.getTimer()Returns theTimerthat created this handle.booleanReturnstrueif and only if theTimerTaskassociated with this handle has been cancelled.booleanReturnstrueif and only if theTimerTaskassociated with this handle has been expired.
-
Method Details
-
getTimer
Timer getTimer()Returns theTimerthat created this handle. -
getTask
TimerTask getTask()Returns theTimerTaskwhich is associated with this handle. -
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
void cancel()Cancels theTimerTaskassociated with this handle. It the task has been executed or cancelled already, it will return with no side effect.
-