sun.misc.SignalHandler@Private
@Unstable
public final class IrqHandler
extends java.lang.Object
implements sun.misc.SignalHandler
IrqHandler.Interrupted.
This class bundles up all the compiler warnings about abuse of sun.misc
interrupt handling code into one place.| Modifier and Type | Class | Description |
|---|---|---|
static class |
IrqHandler.InterruptData |
Interrupt data to pass on.
|
static interface |
IrqHandler.Interrupted |
Callback issues on an interrupt.
|
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
CONTROL_C |
Definition of the Control-C handler name: "INT".
|
static java.lang.String |
SIGTERM |
Definition of default
kill signal: "TERM". |
| Constructor | Description |
|---|---|
IrqHandler(java.lang.String name,
IrqHandler.Interrupted handler) |
Create an IRQ handler bound to the specific interrupt.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
bind() |
Bind to the interrupt handler.
|
java.lang.String |
getName() |
|
int |
getSignalCount() |
Get the count of how many times a signal has been raised.
|
void |
handle(sun.misc.Signal s) |
Handler for the JVM API for signal handling.
|
void |
raise() |
Raise the signal.
|
java.lang.String |
toString() |
public static final java.lang.String CONTROL_C
public static final java.lang.String SIGTERM
kill signal: "TERM".public IrqHandler(java.lang.String name,
IrqHandler.Interrupted handler)
name - signal namehandler - handlerpublic void bind()
java.lang.IllegalArgumentException - if the exception could not be setpublic java.lang.String getName()
public void raise()
public java.lang.String toString()
toString in class java.lang.Objectpublic void handle(sun.misc.Signal s)
handle in interface sun.misc.SignalHandlers - signal raisedpublic int getSignalCount()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.