Package org.xj3d.ui.construct
Class DeathTimer
java.lang.Object
java.lang.Thread
org.xj3d.ui.construct.DeathTimer
- All Implemented Interfaces:
Runnable
A dark and evil class who is very impatient. If it isn't told to stop
in time it will kill the whole system.
Used with captureViewpoints in case the browser hangs. We want the
browser to still exit.
- Version:
- $Revision: 1.0 $
- Author:
- Alan Hudson, Eric Fickenscher
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Constructor Details
-
DeathTimer
public DeathTimer(int wait) - Parameters:
wait
- integer value - number of milliseconds to wait before calling System.exit().
-
-
Method Details
-
run
-
exit
public void exit()Exit this watcher. Call this method if you no longer want to terminate the application.
-