Package io.debezium.engine
Interface DebeziumEngine.ChangeConsumer<R>
-
- Enclosing interface:
- DebeziumEngine<R>
public static interface DebeziumEngine.ChangeConsumer<R>A contract invoked by the embedded engine when it has received a batch of change records to be processed. Allows to process multiple records in one go, acknowledging their processing once that's done.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidhandleBatch(List<R> records, DebeziumEngine.RecordCommitter<R> committer)Handles a batch of records, calling theDebeziumEngine.RecordCommitter.markProcessed(Object)for each record andDebeziumEngine.RecordCommitter.markBatchFinished()when this batch is finished.default booleansupportsTombstoneEvents()Controls whether the change consumer supports processing of tombstone events.
-
-
-
Method Detail
-
handleBatch
void handleBatch(List<R> records, DebeziumEngine.RecordCommitter<R> committer) throws InterruptedException
Handles a batch of records, calling theDebeziumEngine.RecordCommitter.markProcessed(Object)for each record andDebeziumEngine.RecordCommitter.markBatchFinished()when this batch is finished.- Parameters:
records- the records to be processedcommitter- the committer that indicates to the system that we are finished- Throws:
InterruptedException
-
supportsTombstoneEvents
default boolean supportsTombstoneEvents()
Controls whether the change consumer supports processing of tombstone events.- Returns:
- true if the change consumer supports tombstone events; otherwise false. The default is true.
-
-