Package io.debezium.connector.postgresql
Class PostgresChangeEventSourceFactory
java.lang.Object
io.debezium.connector.postgresql.PostgresChangeEventSourceFactory
- All Implemented Interfaces:
ChangeEventSourceFactory<PostgresPartition,PostgresOffsetContext>
public class PostgresChangeEventSourceFactory
extends Object
implements ChangeEventSourceFactory<PostgresPartition,PostgresOffsetContext>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Clockprivate final PostgresConnectorConfigprivate final MainConnectionProvidingConnectionFactory<PostgresConnection> private final PostgresEventDispatcher<TableId> private final ErrorHandlerprivate final ReplicationConnectionprivate final PostgresSchemaprivate final SlotCreationResultprivate final SnapshotterServiceprivate final SlotStateprivate final PostgresTaskContext -
Constructor Summary
ConstructorsConstructorDescriptionPostgresChangeEventSourceFactory(PostgresConnectorConfig configuration, SnapshotterService snapshotterService, MainConnectionProvidingConnectionFactory<PostgresConnection> connectionFactory, ErrorHandler errorHandler, PostgresEventDispatcher<TableId> dispatcher, Clock clock, PostgresSchema schema, PostgresTaskContext taskContext, ReplicationConnection replicationConnection, SlotCreationResult slotCreatedInfo, SlotState startingSlotInfo) -
Method Summary
Modifier and TypeMethodDescriptionOptional<IncrementalSnapshotChangeEventSource<PostgresPartition, ? extends io.debezium.spi.schema.DataCollectionId>> getIncrementalSnapshotChangeEventSource(PostgresOffsetContext offsetContext, SnapshotProgressListener<PostgresPartition> snapshotProgressListener, DataChangeEventListener<PostgresPartition> dataChangeEventListener, NotificationService<PostgresPartition, PostgresOffsetContext> notificationService) getSnapshotChangeEventSource(SnapshotProgressListener<PostgresPartition> snapshotProgressListener, NotificationService<PostgresPartition, PostgresOffsetContext> notificationService)
-
Field Details
-
configuration
-
connectionFactory
-
errorHandler
-
dispatcher
-
clock
-
schema
-
taskContext
-
snapshotterService
-
replicationConnection
-
slotCreatedInfo
-
startingSlotInfo
-
-
Constructor Details
-
PostgresChangeEventSourceFactory
public PostgresChangeEventSourceFactory(PostgresConnectorConfig configuration, SnapshotterService snapshotterService, MainConnectionProvidingConnectionFactory<PostgresConnection> connectionFactory, ErrorHandler errorHandler, PostgresEventDispatcher<TableId> dispatcher, Clock clock, PostgresSchema schema, PostgresTaskContext taskContext, ReplicationConnection replicationConnection, SlotCreationResult slotCreatedInfo, SlotState startingSlotInfo)
-
-
Method Details
-
getSnapshotChangeEventSource
public SnapshotChangeEventSource<PostgresPartition,PostgresOffsetContext> getSnapshotChangeEventSource(SnapshotProgressListener<PostgresPartition> snapshotProgressListener, NotificationService<PostgresPartition, PostgresOffsetContext> notificationService) - Specified by:
getSnapshotChangeEventSourcein interfaceChangeEventSourceFactory<PostgresPartition,PostgresOffsetContext>
-
getStreamingChangeEventSource
public StreamingChangeEventSource<PostgresPartition,PostgresOffsetContext> getStreamingChangeEventSource()- Specified by:
getStreamingChangeEventSourcein interfaceChangeEventSourceFactory<PostgresPartition,PostgresOffsetContext>
-
getIncrementalSnapshotChangeEventSource
public Optional<IncrementalSnapshotChangeEventSource<PostgresPartition,? extends io.debezium.spi.schema.DataCollectionId>> getIncrementalSnapshotChangeEventSource(PostgresOffsetContext offsetContext, SnapshotProgressListener<PostgresPartition> snapshotProgressListener, DataChangeEventListener<PostgresPartition> dataChangeEventListener, NotificationService<PostgresPartition, PostgresOffsetContext> notificationService) - Specified by:
getIncrementalSnapshotChangeEventSourcein interfaceChangeEventSourceFactory<PostgresPartition,PostgresOffsetContext>
-