Class SigInt


  • public class SigInt
    extends java.lang.Object
    Utility to allow the registration of a SIGINT handler that hides the unsupported Signal class.
    • Constructor Summary

      Constructors 
      Constructor Description
      SigInt()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void register​(java.lang.Runnable task)
      Register a task to be run when a SIGINT is received.
      (package private) static void register​(java.lang.String signalName, java.lang.Runnable task)  
      • Methods inherited from class java.lang.Object

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

      • SigInt

        public SigInt()
    • Method Detail

      • register

        public static void register​(java.lang.Runnable task)
        Register a task to be run when a SIGINT is received.
        Parameters:
        task - to run on reception of the signal.
      • register

        static void register​(java.lang.String signalName,
                             java.lang.Runnable task)