Class SigInt

java.lang.Object
org.agrona.concurrent.SigInt

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

    • SigInt

      public SigInt()
  • Method Details

    • register

      public static void register(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(String signalName, Runnable task)