Package org.agrona.concurrent
Class SigInt
java.lang.Object
org.agrona.concurrent.SigInt
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.
-
Method Summary
-
Method Details
-
register
Deprecated, for removal: This API element is subject to removal in a future version.Register a task to be run when aSIGINTis received.- Parameters:
task- to run on reception of the signal.
-
ShutdownSignalBarrierinstead.