Package io.debezium.pipeline.source.spi
Interface ChangeEventSourceFactory
-
public interface ChangeEventSourceFactoryA factory for creatingChangeEventSources specific to one database.- Author:
- Gunnar Morling
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Optional<IncrementalSnapshotChangeEventSource<? extends DataCollectionId>>getIncrementalSnapshotChangeEventSource(OffsetContext offsetContext, SnapshotProgressListener snapshotProgressListener, DataChangeEventListener dataChangeEventListener)Returns and incremental snapshot change event source that can run in parallel with streaming and read and send data collection content in chunk.SnapshotChangeEventSourcegetSnapshotChangeEventSource(OffsetContext offsetContext, SnapshotProgressListener snapshotProgressListener)Returns a snapshot change event source that may emit change events for schema and/or data changes.StreamingChangeEventSourcegetStreamingChangeEventSource(OffsetContext offsetContext)Returns a streaming change event source that starts streaming at the given offset.
-
-
-
Method Detail
-
getSnapshotChangeEventSource
SnapshotChangeEventSource getSnapshotChangeEventSource(OffsetContext offsetContext, SnapshotProgressListener snapshotProgressListener)
Returns a snapshot change event source that may emit change events for schema and/or data changes. Depending on the snapshot mode, a given source may decide to do nothing at all if a previous offset is given. In this case it should return that given offset context from itsStreamingChangeEventSource.execute(io.debezium.pipeline.source.spi.ChangeEventSource.ChangeEventSourceContext)method.- Parameters:
offsetContext- A context representing a restored offset from an earlier run of this connector. May benull.snapshotProgressListener- A listener called for changes in the state of snapshot. May benull.- Returns:
- A snapshot change event source
-
getStreamingChangeEventSource
StreamingChangeEventSource getStreamingChangeEventSource(OffsetContext offsetContext)
Returns a streaming change event source that starts streaming at the given offset.
-
getIncrementalSnapshotChangeEventSource
default Optional<IncrementalSnapshotChangeEventSource<? extends DataCollectionId>> getIncrementalSnapshotChangeEventSource(OffsetContext offsetContext, SnapshotProgressListener snapshotProgressListener, DataChangeEventListener dataChangeEventListener)
Returns and incremental snapshot change event source that can run in parallel with streaming and read and send data collection content in chunk.- Parameters:
offsetContext- A context representing a restored offset from an earlier run of this connector. May benull.snapshotProgressListener- A listener called for changes in the state of snapshot. May benull.- Returns:
- An incremental snapshot change event source
-
-