Top Description Methods
io.netty.util

public Interface Timeout

Known Direct Implementers
io.netty.util.HashedWheelTimer.HashedWheelTimeout

A handle associated with a TimerTask that is returned by a Timer.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

True if the cancellation completed successfully, otherwise false
cancel
()

Attempts to cancel the TimerTask associated with this handle.

public boolean
isCancelled()

Returns true if and only if the TimerTask associated with this handle has been cancelled.

public boolean
isExpired()

Returns true if and only if the TimerTask associated with this handle has been expired.

public TimerTask
task()

Returns the TimerTask which is associated with this handle.

public Timer
timer()

Returns the Timer that created this handle.

Method Detail

cancelback to summary
public boolean cancel()

Attempts to cancel the TimerTask associated with this handle. If the task has been executed or cancelled already, it will return with no side effect.

Returns:boolean

True if the cancellation completed successfully, otherwise false

isCancelledback to summary
public boolean isCancelled()

Returns true if and only if the TimerTask associated with this handle has been cancelled.

isExpiredback to summary
public boolean isExpired()

Returns true if and only if the TimerTask associated with this handle has been expired.

taskback to summary
public TimerTask task()

Returns the TimerTask which is associated with this handle.

timerback to summary
public Timer timer()

Returns the Timer that created this handle.