Class SignalUtils
- java.lang.Object
- org.springframework.boot.loader.tools.SignalUtils
@UsesUnsafeJava public final class SignalUtils extends Object
Utilities for working with signal handling.- Since:
- 1.1.0
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
attachSignalHandler(Runnable runnable)
Handle INT signals by calling the specifiedRunnable
.
Method Detail
attachSignalHandler
public static void attachSignalHandler(Runnable runnable)
Handle INT signals by calling the specifiedRunnable
.- Parameters:
runnable
- the runnable to call on SIGINT.