T
- The type of the parameter that should be returned to the the method interruptFired(int, Object)
public abstract class InterruptHandlerFunction<T> extends java.lang.Object
java.util.concurrent.atomic
as these objects are all thread safe.Constructor and Description |
---|
InterruptHandlerFunction() |
Modifier and Type | Method and Description |
---|---|
abstract void |
interruptFired(int interruptAssertedMask,
T param)
This method is run every time an interrupt is fired.
|
T |
overridableParameter()
Override this method if you would like to pass a specific parameter to the
interruptFired(int, Object) when it is fired by the interrupt. |
public InterruptHandlerFunction()
public abstract void interruptFired(int interruptAssertedMask, T param)
interruptAssertedMask
- Interrupt Maskparam
- The parameter provided by overriding the overridableParameter()
method.public T overridableParameter()
interruptFired(int, Object)
when it is fired by the interrupt. This method is called once
when InterruptableSensorBase.requestInterrupts(InterruptHandlerFunction)
is run.