|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.testsuite.WatchDog
This class creates a Timer that calls System.exit() after a certain amount of time.
| Red (cxh) |
| Red (cxh) |
| Field Summary | |
boolean |
watchDogWentOff
Set to true if the watch time timer interval has passed. |
| Constructor Summary | |
WatchDog(long timeToDie)
Create a timer that will go off after timeToDie milliseconds. |
|
| Method Summary | |
void |
cancel()
|
void |
setExitOnTimeOut(boolean exitOnTimeOut)
Determine whether the JVM will exit when the time interval has passed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public boolean watchDogWentOff
| Constructor Detail |
public WatchDog(long timeToDie)
| Method Detail |
public void cancel()
public void setExitOnTimeOut(boolean exitOnTimeOut)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||