Package io.debezium.engine
Interface DebeziumEngine.RecordCommitter<R>
-
- Enclosing interface:
- DebeziumEngine<R>
public static interface DebeziumEngine.RecordCommitter<R>Contract passed toDebeziumEngine.ChangeConsumers, allowing them to commit single records as they have been processed and to signal that offsets may be flushed eventually.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DebeziumEngine.OffsetsbuildOffsets()Builds a new instance of an object implementing theDebeziumEngine.Offsetscontract.voidmarkBatchFinished()Marks 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 Detail
-
markProcessed
void markProcessed(R record) throws InterruptedException
Marks a single record as processed, must be called for each record.- Parameters:
record- the record to commit- Throws:
InterruptedException
-
markBatchFinished
void markBatchFinished() throws InterruptedExceptionMarks 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
void markProcessed(R record, DebeziumEngine.Offsets sourceOffsets) throws InterruptedException
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
-
-