Class JSerialCommConnector.Callback

java.lang.Object
de.oktoflow.platform.connectors.serial.JSerialCommConnector.Callback
All Implemented Interfaces:
com.fazecast.jSerialComm.SerialPortDataListener, com.fazecast.jSerialComm.SerialPortDataListenerWithExceptions, EventListener
Enclosing class:
JSerialCommConnector<CO,CI>

private class JSerialCommConnector.Callback extends Object implements com.fazecast.jSerialComm.SerialPortDataListenerWithExceptions
The internal reception callback.
Author:
Holger Eichelberger, SSE
  • Field Details

    • portDescriptor

      private String portDescriptor
  • Constructor Details

    • Callback

      private Callback(String portDescriptor)
      Creates a callback.
      Parameters:
      portDescriptor - the descriptor used to create the port
  • Method Details

    • getListeningEvents

      public int getListeningEvents()
      Specified by:
      getListeningEvents in interface com.fazecast.jSerialComm.SerialPortDataListener
    • serialEvent

      public void serialEvent(com.fazecast.jSerialComm.SerialPortEvent event)
      Specified by:
      serialEvent in interface com.fazecast.jSerialComm.SerialPortDataListener
    • catchException

      public void catchException(Exception ex)
      Specified by:
      catchException in interface com.fazecast.jSerialComm.SerialPortDataListenerWithExceptions