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 interfaceEssentially aRunnablewhich allows running to throw an exception. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ShutdownHooks.Task>
Tadd(T task) static voidremove(ShutdownHooks.Task task)
-
Constructor Details
-
ShutdownHooks
public ShutdownHooks()
-
-
Method Details
-
add
-
remove
-