Class SignalUtils

java.lang.Object
org.springframework.boot.loader.tools.SignalUtils

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

    • attachSignalHandler

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