Package de.quantummaid.injectmaid
Class ShutdownHook
- java.lang.Object
-
- java.lang.Thread
-
- de.quantummaid.injectmaid.ShutdownHook
-
- All Implemented Interfaces:
AutoCloseable,Runnable
public final class ShutdownHook extends Thread implements AutoCloseable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description ShutdownHook()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidrun()static ShutdownHookshutdownHook(InjectMaid injectMaid)-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Method Detail
-
shutdownHook
public static ShutdownHook shutdownHook(InjectMaid injectMaid)
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-