public class ShutdownHook
extends java.lang.Thread
Runtime.getRuntime().addShutdownHook(new ShutdownHook("name"))
Modifier and Type | Field and Description |
---|---|
static boolean |
verbose |
Constructor and Description |
---|
ShutdownHook(java.lang.String s)
Initialize thread with given name.
|
Modifier and Type | Method and Description |
---|---|
void |
run() |
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