Package io.debezium.engine
Interface DebeziumEngine.RecordCommitter<R>
- Enclosing interface:
- DebeziumEngine<R>
public static interface DebeziumEngine.RecordCommitter<R>
Contract passed to
DebeziumEngine.ChangeConsumers, allowing them to commit single records as they have been processed
and to signal that offsets may be flushed eventually.-
Method Summary
Modifier and TypeMethodDescriptionBuilds a new instance of an object implementing theDebeziumEngine.Offsetscontract.voidMarks a batch as finished, this may result in committing offsets/flushing data.voidmarkProcessed(R record) Marks a single record as processed, must be called for each record.voidmarkProcessed(R record, DebeziumEngine.Offsets sourceOffsets) Marks a record with updated source offsets as processed.
-
Method Details
-
markProcessed
Marks a single record as processed, must be called for each record.- Parameters:
record- the record to commit- Throws:
InterruptedException
-
markBatchFinished
Marks a batch as finished, this may result in committing offsets/flushing data.Should be called when a batch of records is finished being processed.
- Throws:
InterruptedException
-
markProcessed
Marks a record with updated source offsets as processed.- Parameters:
record- the record to commitsourceOffsets- the source offsets to update the record with- Throws:
InterruptedException
-
buildOffsets
DebeziumEngine.Offsets buildOffsets()Builds a new instance of an object implementing theDebeziumEngine.Offsetscontract.- Returns:
- the object implementing the
DebeziumEngine.Offsetscontract
-