@InterfaceAudience.Private public abstract class ShutdownHookManager extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
ShutdownHookManager.ShutdownHookManagerV1 |
private static class |
ShutdownHookManager.ShutdownHookManagerV2 |
Modifier and Type | Field and Description |
---|---|
private static ShutdownHookManager |
instance |
(package private) static Class |
shutdownHookManagerClass |
Constructor and Description |
---|
ShutdownHookManager() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addShutdownHook(Thread shutdownHook,
int priority) |
static void |
affixShutdownHook(Thread shutdownHook,
int priority) |
static boolean |
deleteShutdownHook(Runnable shutdownHook) |
abstract boolean |
removeShutdownHook(Runnable shutdownHook) |
private static ShutdownHookManager instance
static Class shutdownHookManagerClass
public ShutdownHookManager()
public abstract void addShutdownHook(Thread shutdownHook, int priority)
public abstract boolean removeShutdownHook(Runnable shutdownHook)
public static void affixShutdownHook(Thread shutdownHook, int priority)
public static boolean deleteShutdownHook(Runnable shutdownHook)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.