Package org.jboss.netty.util
Interface Timeout
- All Known Implementing Classes:
HashedWheelTimer.HashedWheelTimeout
public interface Timeout
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
Cancels theTimerTask
associated with this handle.getTask()
Returns theTimerTask
which is associated with this handle.getTimer()
Returns theTimer
that created this handle.boolean
Returnstrue
if and only if theTimerTask
associated with this handle has been cancelled.boolean
Returnstrue
if and only if theTimerTask
associated with this handle has been expired.
-
Method Details
-
getTimer
Timer getTimer()Returns theTimer
that created this handle. -
getTask
TimerTask getTask()Returns theTimerTask
which is associated with this handle. -
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.
-