Class ShutdownManager


  • public class ShutdownManager
    extends java.lang.Object
    Manager for registering shutdown hooks that will run when jvm is terminated gracefully.
    • Constructor Summary

      Constructors 
      Constructor Description
      ShutdownManager()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addShutdownHook​(java.lang.Runnable value)
      Add a shutdown hook.
      static void removeShutdownHook​(java.lang.Runnable value)
      Remove a shutdown hook.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShutdownManager

        public ShutdownManager()
    • Method Detail

      • addShutdownHook

        public static void addShutdownHook​(java.lang.Runnable value)
        Add a shutdown hook.
      • removeShutdownHook

        public static void removeShutdownHook​(java.lang.Runnable value)
        Remove a shutdown hook.