org.springframework.boot.loader.tools

Class SignalUtils



  • public final class SignalUtils
    extends Object
    Utilities for working with signal handling.
    Since:
    1.1.0
    Author:
    Dave Syer
    • Method Detail

      • attachSignalHandler

        public static void attachSignalHandler(Runnable runnable)
        Handle INT signals by calling the specified Runnable.
        Parameters:
        runnable - the runnable to call on SIGINT.