org.oddjob.framework
Class StopWait
java.lang.Object
org.oddjob.framework.StopWait
public class StopWait
- extends Object
A utility class to provide wait until stopped functionality.
The default timeout is 5 seconds before a FailedToStopException
is thrown.
- Author:
- rob
|
Method Summary |
void |
run()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StopWait
public StopWait(Stateful stateful)
StopWait
public StopWait(Stateful stateful,
long timeout)
run
public void run()
throws FailedToStopException
- Throws:
FailedToStopException