java.lang
Class Shutdown
java.lang.Object
java.lang.Shutdown
- class Shutdown
- extends Object
Package-private utility class containing data structures and logic
governing the virtual-machine shutdown sequence.
- Since:
- 1.3
- Author:
- Mark Reinhold
Constructor Summary |
(package private) |
Shutdown()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RUNNING
private static final int RUNNING
- See Also:
- Constant Field Values
HOOKS
private static final int HOOKS
- See Also:
- Constant Field Values
FINALIZERS
private static final int FINALIZERS
- See Also:
- Constant Field Values
state
private static int state
runFinalizersOnExit
private static boolean runFinalizersOnExit
hooks
private static HashSet hooks
lock
private static Object lock
Shutdown
Shutdown()
setRunFinalizersOnExit
static void setRunFinalizersOnExit(boolean run)
add
static void add(Thread hook)
remove
static boolean remove(Thread hook)
runHooks
private static void runHooks()
halt
static void halt(int status)
runAllFinalizers
private static void runAllFinalizers()
sequence
private static void sequence()
exit
static void exit(int status)
shutdown
static void shutdown()