public class ShutdownHook
extends java.lang.Thread
修飾子とタイプ | メソッドと説明 |
---|---|
CallbackShutdown |
getShutdownCallback()
シャットダウンコールバックオブジェクトを取得.
|
static ShutdownHook |
registHook(CallbackShutdown callback)
シャットダウンフックの開始.
|
void |
run()
シャットダウン実行.
|
activeCount, checkAccess, 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
public static final ShutdownHook registHook(CallbackShutdown callback) throws java.lang.Exception
callback
- シャットダウンコールバックオブジェクトを設定します.java.lang.Exception
- 例外.public CallbackShutdown getShutdownCallback()
public void run()
run
インタフェース内 java.lang.Runnable
run
クラス内 java.lang.Thread