Package org.jboss.netty.util
Interface Timeout
-
- All Known Implementing Classes:
HashedWheelTimer.HashedWheelTimeout
public interface Timeout
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cancel()
Cancels theTimerTask
associated with this handle.TimerTask
getTask()
Returns theTimerTask
which is associated with this handle.Timer
getTimer()
Returns theTimer
that created 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.
-
-
-
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
void cancel()
Cancels theTimerTask
associated with this handle. It the task has been executed or cancelled already, it will return with no side effect.
-
-