public class WatchDog extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
watchDogWentOff
Set to true if the watch time timer interval has passed.
|
Constructor and Description |
---|
WatchDog(long timeToDie)
Create a timer that will go off after timeToDie milliseconds.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel the currently pending watchdog.
|
void |
setExitOnTimeOut(boolean exitOnTimeOut)
Determine whether the JVM will exit when the time interval
has passed.
|
public boolean watchDogWentOff
public WatchDog(long timeToDie)
timeToDie
- The time in millesconds when the timer will
go off.public void cancel()
public void setExitOnTimeOut(boolean exitOnTimeOut)
exitOnTimeOut
- True if the JVM will exit when
the time interval has passed.