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

    Fields inherited from class jpigpio.GPIOListener

    bit, edge, gpio
  • 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()  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait