public final class ApplicationShutdownTask
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
register(java.lang.String name,
java.lang.Runnable runnable)
Register application shutdown task.
|
static void |
trigger()
Trigger invocation of the currently registered shutdown tasks.
|
public static void register(java.lang.String name,
java.lang.Runnable runnable)
name - The task name to use for error handling and logging.runnable - The task Runnable to invoke on shutdown.public static void trigger()