public class ExitChecker extends Thread
startExitCheck()
can also be called at any time again to do a check immediately.Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
private static ExitChecker |
exitChecker |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Modifier | Constructor and Description |
---|---|
private |
ExitChecker()
Hide the constructor (it can only be accessed indirectly by a call to
{link ExitChecker#startExitCheck()}).
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Wakes up every 2 seconds to check for an CASA agent threads or a main
thread.
|
(package private) static void |
startExitCheck()
Start up the ExitChecker thread, or, if it's already running, interrupt
it to perform a check immediately.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
private static ExitChecker exitChecker
private ExitChecker()
static void startExitCheck()
public void run()
run
in interface Runnable
run
in class Thread
Thread.run()