Package io.debezium.pipeline
Class ErrorHandler
- java.lang.Object
-
- io.debezium.pipeline.ErrorHandler
-
public class ErrorHandler extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.LoggerLOGGERprivate AtomicReference<Throwable>producerThrowableprivate ChangeEventQueue<?>queue
-
Constructor Summary
Constructors Constructor Description ErrorHandler(Class<? extends org.apache.kafka.connect.source.SourceConnector> connectorType, String logicalName, ChangeEventQueue<?> queue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThrowablegetProducerThrowable()protected booleanisRetriable(Throwable throwable)Whether the given throwable is retriable (e.g.voidsetProducerThrowable(Throwable producerThrowable)
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
queue
private final ChangeEventQueue<?> queue
-
producerThrowable
private final AtomicReference<Throwable> producerThrowable
-
-
Constructor Detail
-
ErrorHandler
public ErrorHandler(Class<? extends org.apache.kafka.connect.source.SourceConnector> connectorType, String logicalName, ChangeEventQueue<?> queue)
-
-
Method Detail
-
setProducerThrowable
public void setProducerThrowable(Throwable producerThrowable)
-
getProducerThrowable
public Throwable getProducerThrowable()
-
isRetriable
protected boolean isRetriable(Throwable throwable)
Whether the given throwable is retriable (e.g. an exception indicating a connection loss) or not.
-
-