public class PostgresConnectorTask extends BaseSourceTask
BaseSourceTask.State| Modifier and Type | Field and Description |
|---|---|
private static String |
CONTEXT_NAME |
private PostgresConnection |
heartbeatConnection |
private PostgresConnection |
jdbcConnection |
private static org.slf4j.Logger |
LOGGER |
private ChangeEventQueue<DataChangeEvent> |
queue |
private PostgresSchema |
schema |
private PostgresTaskContext |
taskContext |
| Constructor and Description |
|---|
PostgresConnectorTask() |
| Modifier and Type | Method and Description |
|---|---|
ReplicationConnection |
createReplicationConnection(PostgresTaskContext taskContext,
boolean shouldExport,
boolean doSnapshot,
int maxRetries,
Duration retryDelay) |
List<org.apache.kafka.connect.source.SourceRecord> |
doPoll() |
protected void |
doStop() |
protected Iterable<Field> |
getAllConfigurationFields() |
PostgresTaskContext |
getTaskContext() |
ChangeEventSourceCoordinator |
start(Configuration config) |
String |
version() |
commit, commitRecord, getPreviousOffset, poll, start, stopprivate static final org.slf4j.Logger LOGGER
private static final String CONTEXT_NAME
private volatile PostgresTaskContext taskContext
private volatile ChangeEventQueue<DataChangeEvent> queue
private volatile PostgresConnection jdbcConnection
private volatile PostgresConnection heartbeatConnection
private volatile PostgresSchema schema
public ChangeEventSourceCoordinator start(Configuration config)
start in class BaseSourceTaskpublic ReplicationConnection createReplicationConnection(PostgresTaskContext taskContext, boolean shouldExport, boolean doSnapshot, int maxRetries, Duration retryDelay) throws org.apache.kafka.connect.errors.ConnectException
org.apache.kafka.connect.errors.ConnectExceptionpublic List<org.apache.kafka.connect.source.SourceRecord> doPoll() throws InterruptedException
doPoll in class BaseSourceTaskInterruptedExceptionprotected void doStop()
doStop in class BaseSourceTaskpublic String version()
protected Iterable<Field> getAllConfigurationFields()
getAllConfigurationFields in class BaseSourceTaskpublic PostgresTaskContext getTaskContext()
Copyright © 2021 JBoss by Red Hat. All rights reserved.