Class BinlogLifecycleListener

java.lang.Object
org.apache.nifi.cdc.mysql.event.BinlogLifecycleListener
All Implemented Interfaces:
com.github.shyiko.mysql.binlog.BinaryLogClient.LifecycleListener

public class BinlogLifecycleListener extends Object implements com.github.shyiko.mysql.binlog.BinaryLogClient.LifecycleListener
An listener wrapper for mysql-binlog-connector lifecycle events.
  • Field Details

  • Constructor Details

    • BinlogLifecycleListener

      public BinlogLifecycleListener()
  • Method Details

    • onConnect

      public void onConnect(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient)
      Specified by:
      onConnect in interface com.github.shyiko.mysql.binlog.BinaryLogClient.LifecycleListener
    • onCommunicationFailure

      public void onCommunicationFailure(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient, Exception e)
      Specified by:
      onCommunicationFailure in interface com.github.shyiko.mysql.binlog.BinaryLogClient.LifecycleListener
    • onEventDeserializationFailure

      public void onEventDeserializationFailure(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient, Exception e)
      Specified by:
      onEventDeserializationFailure in interface com.github.shyiko.mysql.binlog.BinaryLogClient.LifecycleListener
    • onDisconnect

      public void onDisconnect(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient)
      Specified by:
      onDisconnect in interface com.github.shyiko.mysql.binlog.BinaryLogClient.LifecycleListener
    • getClient

      public com.github.shyiko.mysql.binlog.BinaryLogClient getClient()
    • getException

      public Exception getException()