public class ErrorHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
private ExecutorService |
executor |
private static org.slf4j.Logger |
LOGGER |
private Runnable |
onThrowable |
private AtomicReference<Throwable> |
producerThrowable |
private ChangeEventQueue<?> |
queue |
| Constructor and Description |
|---|
ErrorHandler(Class<? extends org.apache.kafka.connect.source.SourceConnector> connectorType,
String logicalName,
ChangeEventQueue<?> queue,
Runnable onThrowable) |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getProducerThrowable() |
void |
setProducerThrowable(Throwable producerThrowable) |
void |
stop() |
private static final org.slf4j.Logger LOGGER
private final ChangeEventQueue<?> queue
private final Runnable onThrowable
private final AtomicReference<Throwable> producerThrowable
private final ExecutorService executor
public ErrorHandler(Class<? extends org.apache.kafka.connect.source.SourceConnector> connectorType, String logicalName, ChangeEventQueue<?> queue, Runnable onThrowable)
public void setProducerThrowable(Throwable producerThrowable)
public Throwable getProducerThrowable()
public void stop()
throws InterruptedException
InterruptedExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.