Package io.debezium.connector.mysql
Class MySqlChangeEventSourceFactory
java.lang.Object
io.debezium.connector.mysql.MySqlChangeEventSourceFactory
- All Implemented Interfaces:
ChangeEventSourceFactory<MySqlPartition,MySqlOffsetContext>
public class MySqlChangeEventSourceFactory
extends Object
implements ChangeEventSourceFactory<MySqlPartition,MySqlOffsetContext>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Clockprivate final MySqlConnectorConfigprivate final MySqlConnectionprivate final EventDispatcher<MySqlPartition,TableId> private final ErrorHandlerprivate final ChangeEventQueue<DataChangeEvent>private final MySqlDatabaseSchemaprivate final MySqlStreamingChangeEventSourceMetricsprivate final MySqlTaskContext -
Constructor Summary
ConstructorsConstructorDescriptionMySqlChangeEventSourceFactory(MySqlConnectorConfig configuration, MySqlConnection connection, ErrorHandler errorHandler, EventDispatcher<MySqlPartition, TableId> dispatcher, Clock clock, MySqlDatabaseSchema schema, MySqlTaskContext taskContext, MySqlStreamingChangeEventSourceMetrics streamingMetrics, ChangeEventQueue<DataChangeEvent> queue) -
Method Summary
Modifier and TypeMethodDescriptionOptional<IncrementalSnapshotChangeEventSource<MySqlPartition,? extends io.debezium.spi.schema.DataCollectionId>> getIncrementalSnapshotChangeEventSource(MySqlOffsetContext offsetContext, SnapshotProgressListener<MySqlPartition> snapshotProgressListener, DataChangeEventListener<MySqlPartition> dataChangeEventListener) getSnapshotChangeEventSource(SnapshotProgressListener<MySqlPartition> snapshotProgressListener) private voidmodifyAndFlushLastRecord(Function<org.apache.kafka.connect.source.SourceRecord, org.apache.kafka.connect.source.SourceRecord> modify)
-
Field Details
-
configuration
-
connection
-
errorHandler
-
dispatcher
-
clock
-
taskContext
-
streamingMetrics
-
schema
-
queue
-
-
Constructor Details
-
MySqlChangeEventSourceFactory
public MySqlChangeEventSourceFactory(MySqlConnectorConfig configuration, MySqlConnection connection, ErrorHandler errorHandler, EventDispatcher<MySqlPartition, TableId> dispatcher, Clock clock, MySqlDatabaseSchema schema, MySqlTaskContext taskContext, MySqlStreamingChangeEventSourceMetrics streamingMetrics, ChangeEventQueue<DataChangeEvent> queue)
-
-
Method Details
-
getSnapshotChangeEventSource
public SnapshotChangeEventSource<MySqlPartition,MySqlOffsetContext> getSnapshotChangeEventSource(SnapshotProgressListener<MySqlPartition> snapshotProgressListener) - Specified by:
getSnapshotChangeEventSourcein interfaceChangeEventSourceFactory<MySqlPartition,MySqlOffsetContext>
-
modifyAndFlushLastRecord
private void modifyAndFlushLastRecord(Function<org.apache.kafka.connect.source.SourceRecord, org.apache.kafka.connect.source.SourceRecord> modify) throws InterruptedException- Throws:
InterruptedException
-
getStreamingChangeEventSource
public StreamingChangeEventSource<MySqlPartition,MySqlOffsetContext> getStreamingChangeEventSource()- Specified by:
getStreamingChangeEventSourcein interfaceChangeEventSourceFactory<MySqlPartition,MySqlOffsetContext>
-
getIncrementalSnapshotChangeEventSource
public Optional<IncrementalSnapshotChangeEventSource<MySqlPartition,? extends io.debezium.spi.schema.DataCollectionId>> getIncrementalSnapshotChangeEventSource(MySqlOffsetContext offsetContext, SnapshotProgressListener<MySqlPartition> snapshotProgressListener, DataChangeEventListener<MySqlPartition> dataChangeEventListener) - Specified by:
getIncrementalSnapshotChangeEventSourcein interfaceChangeEventSourceFactory<MySqlPartition,MySqlOffsetContext>
-