Package org.apache.nifi.cdc.mysql.event
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 Summary
FieldsModifier and TypeFieldDescriptionprivate final com.github.shyiko.mysql.binlog.BinaryLogClientprivate static final org.slf4j.Loggerprivate final BlockingQueue<RawBinlogEvent> private static final intprivate final AtomicBoolean -
Constructor Summary
ConstructorsConstructorDescriptionBinlogEventListener(com.github.shyiko.mysql.binlog.BinaryLogClient client, BlockingQueue<RawBinlogEvent> q) -
Method Summary
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
stopNow
-
QUEUE_OFFER_TIMEOUT_MSEC
private static final int QUEUE_OFFER_TIMEOUT_MSEC- See Also:
-
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:
onEventin interfacecom.github.shyiko.mysql.binlog.BinaryLogClient.EventListener
-