Package io.debezium.connector.db2
Class Db2ChangeEventSourceFactory
- java.lang.Object
-
- io.debezium.connector.db2.Db2ChangeEventSourceFactory
-
- All Implemented Interfaces:
io.debezium.pipeline.source.spi.ChangeEventSourceFactory<Db2OffsetContext>
public class Db2ChangeEventSourceFactory extends Object implements io.debezium.pipeline.source.spi.ChangeEventSourceFactory<Db2OffsetContext>
-
-
Field Summary
Fields Modifier and Type Field Description private io.debezium.util.Clockclockprivate Db2ConnectorConfigconfigurationprivate Db2ConnectiondataConnectionprivate io.debezium.pipeline.EventDispatcher<io.debezium.relational.TableId>dispatcherprivate io.debezium.pipeline.ErrorHandlererrorHandlerprivate Db2ConnectionmetadataConnectionprivate Db2DatabaseSchemaschema
-
Constructor Summary
Constructors Constructor Description Db2ChangeEventSourceFactory(Db2ConnectorConfig configuration, Db2Connection dataConnection, Db2Connection metadataConnection, io.debezium.pipeline.ErrorHandler errorHandler, io.debezium.pipeline.EventDispatcher<io.debezium.relational.TableId> dispatcher, io.debezium.util.Clock clock, Db2DatabaseSchema schema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<io.debezium.pipeline.source.snapshot.incremental.IncrementalSnapshotChangeEventSource<? extends io.debezium.schema.DataCollectionId>>getIncrementalSnapshotChangeEventSource(Db2OffsetContext offsetContext, io.debezium.pipeline.source.spi.SnapshotProgressListener snapshotProgressListener, io.debezium.pipeline.source.spi.DataChangeEventListener dataChangeEventListener)io.debezium.pipeline.source.spi.SnapshotChangeEventSource<Db2OffsetContext>getSnapshotChangeEventSource(io.debezium.pipeline.source.spi.SnapshotProgressListener snapshotProgressListener)io.debezium.pipeline.source.spi.StreamingChangeEventSource<Db2OffsetContext>getStreamingChangeEventSource()
-
-
-
Field Detail
-
configuration
private final Db2ConnectorConfig configuration
-
dataConnection
private final Db2Connection dataConnection
-
metadataConnection
private final Db2Connection metadataConnection
-
errorHandler
private final io.debezium.pipeline.ErrorHandler errorHandler
-
dispatcher
private final io.debezium.pipeline.EventDispatcher<io.debezium.relational.TableId> dispatcher
-
clock
private final io.debezium.util.Clock clock
-
schema
private final Db2DatabaseSchema schema
-
-
Constructor Detail
-
Db2ChangeEventSourceFactory
public Db2ChangeEventSourceFactory(Db2ConnectorConfig configuration, Db2Connection dataConnection, Db2Connection metadataConnection, io.debezium.pipeline.ErrorHandler errorHandler, io.debezium.pipeline.EventDispatcher<io.debezium.relational.TableId> dispatcher, io.debezium.util.Clock clock, Db2DatabaseSchema schema)
-
-
Method Detail
-
getSnapshotChangeEventSource
public io.debezium.pipeline.source.spi.SnapshotChangeEventSource<Db2OffsetContext> getSnapshotChangeEventSource(io.debezium.pipeline.source.spi.SnapshotProgressListener snapshotProgressListener)
- Specified by:
getSnapshotChangeEventSourcein interfaceio.debezium.pipeline.source.spi.ChangeEventSourceFactory<Db2OffsetContext>
-
getStreamingChangeEventSource
public io.debezium.pipeline.source.spi.StreamingChangeEventSource<Db2OffsetContext> getStreamingChangeEventSource()
- Specified by:
getStreamingChangeEventSourcein interfaceio.debezium.pipeline.source.spi.ChangeEventSourceFactory<Db2OffsetContext>
-
getIncrementalSnapshotChangeEventSource
public Optional<io.debezium.pipeline.source.snapshot.incremental.IncrementalSnapshotChangeEventSource<? extends io.debezium.schema.DataCollectionId>> getIncrementalSnapshotChangeEventSource(Db2OffsetContext offsetContext, io.debezium.pipeline.source.spi.SnapshotProgressListener snapshotProgressListener, io.debezium.pipeline.source.spi.DataChangeEventListener dataChangeEventListener)
- Specified by:
getIncrementalSnapshotChangeEventSourcein interfaceio.debezium.pipeline.source.spi.ChangeEventSourceFactory<Db2OffsetContext>
-
-