@ThreadSafe public static interface EmbeddedEngine.RecordCommitter
EmbeddedEngine.ChangeConsumers, allowing them to commit single records as they have been processed
and to signal that offsets may be flushed eventually.| Modifier and Type | Method and Description |
|---|---|
void |
markBatchFinished()
Marks a batch as finished, this may result in committing offsets/flushing
data.
|
void |
markProcessed(org.apache.kafka.connect.source.SourceRecord record)
Marks a single record as processed, must be called for each
record.
|
void markProcessed(org.apache.kafka.connect.source.SourceRecord record)
throws InterruptedException
record - the record to commitInterruptedExceptionvoid markBatchFinished()
Should be called when a batch of records is finished being processed.
Copyright © 2020 JBoss by Red Hat. All rights reserved.