Package org.jline.utils
Class ShutdownHooks
java.lang.Object
org.jline.utils.ShutdownHooks
Manages the JLine shutdown-hook thread and tasks to execute on shutdown.
- Since:
- 2.7
- Author:
- Jason Dillon
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Essentially aRunnable
which allows running to throw an exception. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ShutdownHooks.Task>
Tadd
(T task) static void
remove
(ShutdownHooks.Task task)
-
Constructor Details
-
ShutdownHooks
public ShutdownHooks()
-
-
Method Details
-
add
-
remove
-