org.oddjob.framework
Class StopWait

java.lang.Object
  extended by 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

Constructor Summary
StopWait(Stateful stateful)
           
StopWait(Stateful stateful, long timeout)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StopWait

public StopWait(Stateful stateful)

StopWait

public StopWait(Stateful stateful,
                long timeout)
Method Detail

run

public void run()
         throws FailedToStopException
Throws:
FailedToStopException