Package org.apache.dubbo.common.lang
Interface ShutdownHookCallback
- All Superinterfaces:
Comparable<Prioritized>,Prioritized
A callback interface invoked when Dubbo application is stopped.
Note: This class is not directly related to Java ShutdownHook.
Call chains:
- Java Shutdown Hook -> ApplicationDeployer.destroy() -> execute ShutdownHookCallback
- Stop dubbo application -> ApplicationDeployer.destroy() -> execute ShutdownHookCallback
- Since:
- 2.7.5
- See Also:
-
Field Summary
Fields inherited from interface org.apache.dubbo.common.lang.Prioritized
COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY -
Method Summary
Methods inherited from interface org.apache.dubbo.common.lang.Prioritized
compareTo, getPriority
-
Method Details
-
callback
Callback execution- Throws:
Throwable- if met with some errors
-