Class 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 Detail

      • 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
    • 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:
        getSnapshotChangeEventSource in interface io.debezium.pipeline.source.spi.ChangeEventSourceFactory<Db2OffsetContext>
      • getStreamingChangeEventSource

        public io.debezium.pipeline.source.spi.StreamingChangeEventSource<Db2OffsetContext> getStreamingChangeEventSource()
        Specified by:
        getStreamingChangeEventSource in interface io.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:
        getIncrementalSnapshotChangeEventSource in interface io.debezium.pipeline.source.spi.ChangeEventSourceFactory<Db2OffsetContext>