Class ShutDownHookManager


  • public final class ShutDownHookManager
    extends java.lang.Object
    Shutdown hook manager which unifies all logic with object's lifecycle;
          It is possible to register shutdown hook as well as finalizer which
          will be invoked after all hooks been invoked;
     
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void register​(java.lang.Runnable theInvoker)  
      static void register​(java.lang.String theName, java.lang.Runnable theInvoker)  
      static void register​(java.lang.String theName, java.lang.Runnable theInvoker, int thePriority)  
      static void setFinalizer​(java.lang.Runnable theFinalizer)  
      • Methods inherited from class java.lang.Object

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

      • ShutDownHookManager

        public ShutDownHookManager()
    • Method Detail

      • register

        public static void register​(java.lang.Runnable theInvoker)
      • register

        public static void register​(java.lang.String theName,
                                    java.lang.Runnable theInvoker)
      • register

        public static void register​(java.lang.String theName,
                                    java.lang.Runnable theInvoker,
                                    int thePriority)
      • setFinalizer

        public static void setFinalizer​(java.lang.Runnable theFinalizer)