Package io.debezium.pipeline.source.spi
Interface StreamingChangeEventSource<O extends OffsetContext>
-
- All Superinterfaces:
ChangeEventSource
public interface StreamingChangeEventSource<O extends OffsetContext> extends ChangeEventSource
A change event source that emits events from a DB log, such as MySQL's binlog or similar.- Author:
- Gunnar Morling
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.debezium.pipeline.source.spi.ChangeEventSource
ChangeEventSource.ChangeEventSourceContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
commitOffset(Map<String,?> offset)
Commits the given offset with the source database.void
execute(ChangeEventSource.ChangeEventSourceContext context, O offsetContext)
Executes this source.
-
-
-
Method Detail
-
execute
void execute(ChangeEventSource.ChangeEventSourceContext context, O offsetContext) throws InterruptedException
Executes this source. Implementations should regularly check via the given context if they should stop. If that's the case, they should abort their processing and perform any clean-up needed, such as rolling back pending transactions, releasing locks etc.- Parameters:
context
- contextual information for this source's executionoffsetContext
-- Throws:
InterruptedException
- in case the snapshot was aborted before completion
-
-