Class SigInt

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

@Deprecated(forRemoval=true, since="2.3.0") public final class SigInt extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
THIS CLASS IS DEPRECATED AND WILL BE REMOVED IN A FUTURE RELEASE.

WARNING: Calling register(Runnable) will replace SIGINT signal handling in the JVM and thus will prevent shutdown hooks (Runtime.addShutdownHook(Thread)) from being executed!

Utility to allow the registration of a SIGINT handler that hides the unsupported jdk.internal.misc.Signal class.

See Also:
  • Method Details

    • register

      public static void register(Runnable task)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Register a task to be run when a SIGINT is received.
      Parameters:
      task - to run on reception of the signal.