Package com.complexible.common.util
Class ShutDownHookManager
- java.lang.Object
-
- com.complexible.common.util.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;
-
-
Constructor Summary
Constructors Constructor Description ShutDownHookManager()
-
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)
-
-
-
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)
-
-