Class BinlogEventListener

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

public class BinlogEventListener extends Object implements com.github.shyiko.mysql.binlog.BinaryLogClient.EventListener
An event listener wrapper for MYSQL binlog events generated from the mysql-binlog-connector.
  • Field Details

    • logger

      private static final org.slf4j.Logger logger
    • stopNow

      private final AtomicBoolean stopNow
    • QUEUE_OFFER_TIMEOUT_MSEC

      private static final int QUEUE_OFFER_TIMEOUT_MSEC
      See Also:
    • queue

      private final BlockingQueue<RawBinlogEvent> queue
    • client

      private final com.github.shyiko.mysql.binlog.BinaryLogClient client
  • Constructor Details

    • BinlogEventListener

      public BinlogEventListener(com.github.shyiko.mysql.binlog.BinaryLogClient client, BlockingQueue<RawBinlogEvent> q)
  • Method Details

    • start

      public void start()
    • stop

      public void stop()
    • onEvent

      public void onEvent(com.github.shyiko.mysql.binlog.event.Event event)
      Specified by:
      onEvent in interface com.github.shyiko.mysql.binlog.BinaryLogClient.EventListener