public abstract static class BinaryLogClient.AbstractLifecycleListener extends Object implements BinaryLogClient.LifecycleListener
BinaryLogClient.LifecycleListener.| Constructor and Description |
|---|
AbstractLifecycleListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onCommunicationFailure(BinaryLogClient client,
Exception ex)
It's guarantied to be called before
BinaryLogClient.LifecycleListener.onDisconnect(BinaryLogClient)) in case of
communication failure. |
void |
onConnect(BinaryLogClient client)
Called once client has successfully logged in but before started to receive binlog events.
|
void |
onDisconnect(BinaryLogClient client)
Called upon disconnect (regardless of the reason).
|
void |
onEventDeserializationFailure(BinaryLogClient client,
Exception ex)
Called in case of failed event deserialization.
|
public void onConnect(BinaryLogClient client)
BinaryLogClient.LifecycleListeneronConnect in interface BinaryLogClient.LifecycleListenerpublic void onCommunicationFailure(BinaryLogClient client, Exception ex)
BinaryLogClient.LifecycleListenerBinaryLogClient.LifecycleListener.onDisconnect(BinaryLogClient)) in case of
communication failure.onCommunicationFailure in interface BinaryLogClient.LifecycleListenerpublic void onEventDeserializationFailure(BinaryLogClient client, Exception ex)
BinaryLogClient.LifecycleListeneronEventDeserializationFailure in interface BinaryLogClient.LifecycleListenerpublic void onDisconnect(BinaryLogClient client)
BinaryLogClient.LifecycleListeneronDisconnect in interface BinaryLogClient.LifecycleListenerCopyright © 2019. All rights reserved.