akka.util.internal
Interface Timeout


Deprecated.

@Deprecated
public interface Timeout

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


Method Summary
 boolean cancel()
          Deprecated. Cancels the TimerTask associated with this handle.
 TimerTask getTask()
          Deprecated. Returns the TimerTask which is associated with this handle.
 Timer getTimer()
          Deprecated. Returns the Timer that created this handle.
 boolean isCancelled()
          Deprecated. Returns true if and only if the TimerTask associated with this handle has been cancelled.
 boolean isExpired()
          Deprecated. Returns true if and only if the TimerTask associated with this handle has been expired.
 

Method Detail

getTimer

Timer getTimer()
Deprecated. 
Returns the Timer that created this handle.


getTask

TimerTask getTask()
Deprecated. 
Returns the TimerTask which is associated with this handle.


isExpired

boolean isExpired()
Deprecated. 
Returns true if and only if the TimerTask associated with this handle has been expired.


isCancelled

boolean isCancelled()
Deprecated. 
Returns true if and only if the TimerTask associated with this handle has been cancelled.


cancel

boolean cancel()
Deprecated. 
Cancels the TimerTask associated with this handle. It the task has been executed or cancelled already, it will return with no side effect.

Returns:
whether the caller was the one who actually cancelled this timeout (there can be at most one; never returns true if the Timeout expired)