public static interface DebeziumEngine.RecordCommitter<R>
DebeziumEngine.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 |
|---|---|
DebeziumEngine.Offsets |
buildOffsets()
Builds a new instance of an object implementing the
DebeziumEngine.Offsets contract. |
void |
markBatchFinished()
Marks a batch as finished, this may result in committing offsets/flushing
data.
|
void |
markProcessed(R record)
Marks a single record as processed, must be called for each
record.
|
void |
markProcessed(R record,
DebeziumEngine.Offsets sourceOffsets)
Marks a record with updated source offsets as processed.
|
void markProcessed(R record) throws InterruptedException
record - the record to commitInterruptedExceptionvoid markBatchFinished()
throws InterruptedException
Should be called when a batch of records is finished being processed.
InterruptedExceptionvoid markProcessed(R record, DebeziumEngine.Offsets sourceOffsets) throws InterruptedException
record - the record to commitsourceOffsets - the source offsets to update the record withInterruptedExceptionDebeziumEngine.Offsets buildOffsets()
DebeziumEngine.Offsets contract.DebeziumEngine.Offsets contractCopyright © 2021 JBoss by Red Hat. All rights reserved.