Class WhatNextManager.TimedJvmQuit
java.lang.Object
java.lang.Thread
net.sf.colossus.common.WhatNextManager.TimedJvmQuit
- All Implemented Interfaces:
Runnable
- Enclosing class:
WhatNextManager
A demon thread which is started by triggerTimedQuit.
It will then (currently) sleep 10 (120) seconds, and if it is then
still alive, do a System.exit(1) to terminate the JVM.
If, however, the game shutdown proceeded successfully as planned,
Start.main() will already have reached it's end and there should
not be any other non-demon threads alive, so the JVM *should*
terminate by itself cleanly.
So, if this TimedJvmQuit strikes, it means the "clean shutdown"
has somehow failed.
-
Nested Class Summary
Nested classes/interfaces inherited from class Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Loggerprivate final Stringprivate final longFields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class 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, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, threadId, toString, yield
-
Field Details
-
LOGGER
-
defaultName
- See Also:
-
name
-
timeOutInSecs
private final long timeOutInSecs- See Also:
-
-
Constructor Details
-
TimedJvmQuit
public TimedJvmQuit()
-
-
Method Details
-
run
-