Package io.debezium.embedded.async
Class ParallelSmtAndConvertConsumerProcessor<R>
java.lang.Object
io.debezium.embedded.async.AbstractRecordProcessor<R>
io.debezium.embedded.async.ParallelSmtAndConvertConsumerProcessor<R>
- All Implemented Interfaces:
RecordProcessor<R>
RecordProcessor which transforms and converts the records in parallel. Converted records are passed to the user-provided Consumer.
This processor should be used when user provides only custom Consumer, records should be converted and passed to the consumer in the same order as they
were obtained from the database.- Author:
- vjuranek
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final io.debezium.engine.DebeziumEngine.RecordCommitterprivate static final org.slf4j.LoggerFields inherited from class io.debezium.embedded.async.AbstractRecordProcessor
recordService, transformations -
Constructor Summary
ConstructorsConstructorDescriptionParallelSmtAndConvertConsumerProcessor(io.debezium.engine.DebeziumEngine.RecordCommitter committer, Consumer<R> consumer, Function<org.apache.kafka.connect.source.SourceRecord, R> convertor) -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessRecords(List<org.apache.kafka.connect.source.SourceRecord> records) Processes a batch of records provided by the source connector.Methods inherited from class io.debezium.embedded.async.AbstractRecordProcessor
initialize
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
committer
final io.debezium.engine.DebeziumEngine.RecordCommitter committer -
consumer
-
convertor
-
-
Constructor Details
-
ParallelSmtAndConvertConsumerProcessor
-
-
Method Details
-
processRecords
public void processRecords(List<org.apache.kafka.connect.source.SourceRecord> records) throws Exception Description copied from interface:RecordProcessorProcesses a batch of records provided by the source connector. Implementations are assumed to useDebeziumEngine.RecordCommitterto appropriately commit individual records and the batch itself.- Specified by:
processRecordsin interfaceRecordProcessor<R>- Specified by:
processRecordsin classAbstractRecordProcessor<R>- Parameters:
records- List ofSourceRecordprovided by the source connector to be processed.- Throws:
Exception- Any exception is propagated to the caller.
-