public class ErrorHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOGGER |
private AtomicReference<Throwable> |
producerThrowable |
private ChangeEventQueue<?> |
queue |
| Constructor and Description |
|---|
ErrorHandler(Class<? extends org.apache.kafka.connect.source.SourceConnector> connectorType,
String logicalName,
ChangeEventQueue<?> queue) |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getProducerThrowable() |
protected boolean |
isRetriable(Throwable throwable)
Whether the given throwable is retriable (e.g.
|
void |
setProducerThrowable(Throwable producerThrowable) |
private static final org.slf4j.Logger LOGGER
private final ChangeEventQueue<?> queue
private final AtomicReference<Throwable> producerThrowable
public ErrorHandler(Class<? extends org.apache.kafka.connect.source.SourceConnector> connectorType, String logicalName, ChangeEventQueue<?> queue)
public void setProducerThrowable(Throwable producerThrowable)
public Throwable getProducerThrowable()
protected boolean isRetriable(Throwable throwable)
Copyright © 2020 JBoss by Red Hat. All rights reserved.