|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.oddjob.framework.StopWait
public class StopWait
A utility class to provide wait until stopped functionality.
The default timeout is 5 seconds before a FailedToStopException
is thrown.
| Constructor Summary | |
|---|---|
StopWait(Stateful stateful)
Constructor with default timeout. |
|
StopWait(Stateful stateful,
long timeout)
Constructor where timeout can be specified. |
|
| Method Summary | |
|---|---|
void |
run()
Run the stop wait. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StopWait(Stateful stateful)
stateful - The thing to wait until stopped.
public StopWait(Stateful stateful,
long timeout)
stateful - The thing to wait until stopped.timeout - The timeout. Note that a timeout of 0 or less is
no timeout.| Method Detail |
|---|
public void run()
throws FailedToStopException
FailedToStopException - If timeout occurs.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||