SpringApplicationShutdownHandlers
interface SpringApplicationShutdownHandlers
Interface that can be used to add or remove code that should run when the JVM is shutdown. Shutdown handlers are similar to JVM shutdown hooks except that they run sequentially rather than concurrently.
Shutdown handlers are guaranteed to be called only after registered ApplicationContext instances have been closed and are no longer active.
Author
Phillip Webb
Andy Wilkinson
Since
2.5.1