Class SignalUtils


  • @UsesUnsafeJava
    public final class SignalUtils
    extends java.lang.Object
    Utilities for working with signal handling.
    Since:
    1.1.0
    Author:
    Dave Syer
    • Method Summary

      Modifier and Type Method Description
      static void attachSignalHandler​(java.lang.Runnable runnable)
      Handle INT signals by calling the specified Runnable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • attachSignalHandler

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