Package org.agrona.concurrent
Class SigInt
java.lang.Object
org.agrona.concurrent.SigInt
Utility to allow the registration of a SIGINT handler that hides the unsupported
jdk.internal.misc.Signal
class.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Method
private static final Method
private static final Constructor
<?> private static final Class
<?> -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
SIGNAL_HANDLER_CLASS
-
SIGNAL_CONSTRUCTOR
-
HANDLE_METHOD
-
RAISE_METHOD
-
-
Constructor Details
-
SigInt
private SigInt()
-
-
Method Details
-
register
Register a task to be run when a SIGINT is received.- Parameters:
task
- to run on reception of the signal.
-
register
-
raiseSignal
- Throws:
ReflectiveOperationException
-