Package io.debezium.pipeline
Class ErrorHandler
java.lang.Object
io.debezium.pipeline.ErrorHandler
-
Field Summary
Modifier and TypeFieldDescriptionprivate final CommonConnectorConfig
private static final org.slf4j.Logger
private final AtomicReference<Throwable>
private final ChangeEventQueue<?>
-
Constructor Summary
ConstructorDescriptionErrorHandler
(Class<? extends org.apache.kafka.connect.source.SourceConnector> connectorType, CommonConnectorConfig connectorConfig, ChangeEventQueue<?> queue) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isCustomRetriable
(Throwable throwable) Whether the given non-retriable matches a custom retriable setting.protected boolean
isRetriable
(Throwable throwable) Whether the given throwable is retriable (e.g.void
setProducerThrowable
(Throwable producerThrowable)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
queue
-
producerThrowable
-
connectorConfig
-
-
Constructor Details
-
ErrorHandler
public ErrorHandler(Class<? extends org.apache.kafka.connect.source.SourceConnector> connectorType, CommonConnectorConfig connectorConfig, ChangeEventQueue<?> queue)
-
-
Method Details
-
setProducerThrowable
-
getProducerThrowable
-
communicationExceptions
-
isRetriable
Whether the given throwable is retriable (e.g. an exception indicating a connection loss) or not. By default only I/O exceptions are retriable -
isCustomRetriable
Whether the given non-retriable matches a custom retriable setting.- Returns:
- true if non-retriable is converted to retriable
-