Package jpigpio.packet
Class NotificationListener
java.lang.Object
jpigpio.GPIOListener
jpigpio.packet.NotificationListener
- All Implemented Interfaces:
Alert
public class NotificationListener extends GPIOListener
NotificationListener is object, which after being registered with NotificationRouter (see class PigpioSocket)
receives notifications coming from Pigpiod. Every relevant notification (NotificationRouter filters out those
notifications irrelevant for specific NotificationListener object based on EDGE and GPIO pin which listener
is registered for) triggers calling method alert.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description NotificationListener(int userGpio, int edge)
-
Method Summary
Modifier and Type Method Description void
alert(int gpio, int level, long tick)
int
byteErrorCount()
int
countCalled()
void
countReset()
int
datagramErrorCount()
-
Constructor Details
-
NotificationListener
public NotificationListener(int userGpio, int edge)
-
-
Method Details
-
alert
public void alert(int gpio, int level, long tick) -
countCalled
public int countCalled() -
countReset
public void countReset() -
byteErrorCount
public int byteErrorCount() -
datagramErrorCount
public int datagramErrorCount()
-