Package org.apache.nifi.cdc.mysql.event
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 Summary
FieldsModifier and TypeFieldDescription(package private) AtomicReference<com.github.shyiko.mysql.binlog.BinaryLogClient> (package private) AtomicReference<Exception> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.github.shyiko.mysql.binlog.BinaryLogClientvoidonCommunicationFailure(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient, Exception e) voidonConnect(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient) voidonDisconnect(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient) voidonEventDeserializationFailure(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient, Exception e)
-
Field Details
-
client
AtomicReference<com.github.shyiko.mysql.binlog.BinaryLogClient> client -
exception
AtomicReference<Exception> exception
-
-
Constructor Details
-
BinlogLifecycleListener
public BinlogLifecycleListener()
-
-
Method Details
-
onConnect
public void onConnect(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient) - Specified by:
onConnectin interfacecom.github.shyiko.mysql.binlog.BinaryLogClient.LifecycleListener
-
onCommunicationFailure
public void onCommunicationFailure(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient, Exception e) - Specified by:
onCommunicationFailurein interfacecom.github.shyiko.mysql.binlog.BinaryLogClient.LifecycleListener
-
onEventDeserializationFailure
public void onEventDeserializationFailure(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient, Exception e) - Specified by:
onEventDeserializationFailurein interfacecom.github.shyiko.mysql.binlog.BinaryLogClient.LifecycleListener
-
onDisconnect
public void onDisconnect(com.github.shyiko.mysql.binlog.BinaryLogClient binaryLogClient) - Specified by:
onDisconnectin interfacecom.github.shyiko.mysql.binlog.BinaryLogClient.LifecycleListener
-
getClient
public com.github.shyiko.mysql.binlog.BinaryLogClient getClient() -
getException
-