org.limitless.util
Class InterruptableTimeout
java.lang.Object
org.limitless.util.InterruptableTimeout
- All Implemented Interfaces:
- java.lang.Runnable
public class InterruptableTimeout
- extends java.lang.Object
- implements java.lang.Runnable
This class takes an object and a timeout, and when the timeout
occurs, if it hasn't been aborted, it invokes "go" on the object.
|
Method Summary |
void |
done()
|
void |
run()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
static org.apache.log4j.Logger logger
- Log4J Logger
timeoutHandler
private InterruptableTimeout.OnTimeout timeoutHandler
timeToExpire
private long timeToExpire
timeThread
java.lang.Thread timeThread
killAborted
boolean killAborted
InterruptableTimeout
public InterruptableTimeout(int secondsToWait,
InterruptableTimeout.OnTimeout what)
run
public void run()
- Specified by:
run in interface java.lang.Runnable
done
public void done()
Copyright © 1995, 2004 Limitless Knowledge Association, All Rights Reserved.