类 DubboShutdownHook
- java.lang.Object
-
- java.lang.Thread
-
- org.apache.dubbo.config.DubboShutdownHook
-
- 所有已实现的接口:
Runnable
public class DubboShutdownHook extends Thread
The shutdown hook thread to do the clean up stuff. This is a singleton in order to ensure there is only one shutdown hook registered. BecauseApplicationShutdownHooks
useIdentityHashMap
to store the shutdown hooks.
-
-
嵌套类概要
-
从类继承的嵌套类/接口 java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
字段概要
-
从类继承的字段 java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 void
doDestroy()
Destroy all the resources, including registries and protocols.static DubboShutdownHook
getDubboShutdownHook()
boolean
getRegistered()
void
register()
Register the ShutdownHookvoid
run()
void
unregister()
Unregister the ShutdownHook-
从类继承的方法 java.lang.Thread
activeCount, checkAccess, 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
-
-
-
-
方法详细资料
-
getDubboShutdownHook
public static DubboShutdownHook getDubboShutdownHook()
-
register
public void register()
Register the ShutdownHook
-
unregister
public void unregister()
Unregister the ShutdownHook
-
doDestroy
public void doDestroy()
Destroy all the resources, including registries and protocols.
-
getRegistered
public boolean getRegistered()
-
-