public abstract class RecordsProducer extends Object
SourceRecord records.| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
protected SourceInfo |
sourceInfo |
protected PostgresTaskContext |
taskContext |
| Modifier | Constructor and Description |
|---|---|
protected |
RecordsProducer(PostgresTaskContext taskContext,
SourceInfo sourceInfo) |
| Modifier and Type | Method and Description |
|---|---|
protected Clock |
clock() |
protected abstract void |
commit(long lsn)
Notification that offsets have been committed to Kafka up to the given LSN.
|
protected PostgresSchema |
schema() |
protected abstract void |
start(BlockingConsumer<ChangeEvent> recordsConsumer,
Consumer<Throwable> failureConsumer)
Starts up this producer.
|
protected abstract void |
stop()
Requests that this producer be stopped.
|
protected TopicSelector<TableId> |
topicSelector() |
protected final org.slf4j.Logger logger
protected final PostgresTaskContext taskContext
protected final SourceInfo sourceInfo
protected RecordsProducer(PostgresTaskContext taskContext, SourceInfo sourceInfo)
protected abstract void start(BlockingConsumer<ChangeEvent> recordsConsumer, Consumer<Throwable> failureConsumer)
PostgresConnectorTask instance. Subclasses should start
enqueuing records via a separate thread at the end of this method.recordsConsumer - a consumer of ChangeEvent instances, may not be nullprotected abstract void commit(long lsn)
protected abstract void stop()
PostgresConnectorTask instanceprotected PostgresSchema schema()
protected TopicSelector<TableId> topicSelector()
protected Clock clock()
Copyright © 2021 JBoss by Red Hat. All rights reserved.