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()
Notification that offsets have been committed to Kafka.
|
protected Envelope |
createEnvelope(TableSchema tableSchema,
String topicName) |
protected PostgresSchema |
schema() |
protected abstract void |
start(Consumer<org.apache.kafka.connect.source.SourceRecord> recordsConsumer)
Starts up this producer.
|
protected abstract void |
stop()
Requests that this producer be stopped.
|
protected TopicSelector |
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(Consumer<org.apache.kafka.connect.source.SourceRecord> recordsConsumer)
PostgresConnectorTask instance. Subclasses should start
enqueuing records via a separate thread at the end of this method.recordsConsumer - a consumer of SourceRecord instances, may not be nullprotected abstract void commit()
protected abstract void stop()
PostgresConnectorTask instanceprotected PostgresSchema schema()
protected TopicSelector topicSelector()
protected Clock clock()
protected Envelope createEnvelope(TableSchema tableSchema, String topicName)
Copyright © 2017 JBoss by Red Hat. All rights reserved.