| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final List | |
| private final AutoLock | |
| private static final ShutdownThread | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| private | ShutdownThread()
Default constructor for the singleton Registers the instance as shutdown hook with the Java Runtime |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static ShutdownThread | Returns: the singleton instance of theShutdownThreadReturns the instance of the singleton |
| private void | |
| public static boolean | |
| public static void | |
| public static void | |
| public void | run()
Overrides java. Implements java. |
| private void |
| _hooked | back to summary |
|---|---|
| private boolean _hooked | |
| _lifeCycles | back to summary |
|---|---|
| private final List<LifeCycle> _lifeCycles | |
| _lock | back to summary |
|---|---|
| private final AutoLock _lock | |
| _thread | back to summary |
|---|---|
| private static final ShutdownThread _thread | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| ShutdownThread | back to summary |
|---|---|
| private ShutdownThread() Default constructor for the singleton Registers the instance as shutdown hook with the Java Runtime | |
| deregister | back to summary |
|---|---|
| public static void deregister(LifeCycle lifeCycle) | |
| getInstance | back to summary |
|---|---|
| public static ShutdownThread getInstance() Returns the instance of the singleton
| |
| hook | back to summary |
|---|---|
| private void hook() | |
| isRegistered | back to summary |
|---|---|
| public static boolean isRegistered(LifeCycle lifeCycle) | |
| register | back to summary |
|---|---|
| public static void register(LifeCycle... lifeCycles) | |
| register | back to summary |
|---|---|
| public static void register(int index, LifeCycle... lifeCycles) | |
| run | back to summary |
|---|---|
| public void run() Overrides java. Implements java. Doc from java. This method is run by the thread when it executes. Subclasses of This method is not intended to be invoked directly. If this thread is a
platform thread created with a
| |
| unhook | back to summary |
|---|---|
| private void unhook() | |