org.elkoserver.foundation.timer
Class Timeout
java.lang.Object
org.elkoserver.foundation.timer.Timeout
public class Timeout
- extends Object
Object representing a scheduled timeout event. Timeouts can only be created
by calling the after() method on a Timer
instance.
- See Also:
TimeoutNoticer
|
Method Summary |
boolean |
cancel()
Cancels this timeout. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cancel
public boolean cancel()
- Cancels this timeout. Note, however, that although a Timeout
can be cancelled, there is no guarantee that it has not already occured
by the time it is cancelled.
- Returns:
- true if cancellation was successful, false if
it wasn't.