Package io.debezium.connector.postgresql
Class PostgresEventDispatcher<T extends io.debezium.spi.schema.DataCollectionId>
java.lang.Object
io.debezium.pipeline.EventDispatcher<PostgresPartition,T>
io.debezium.connector.postgresql.PostgresEventDispatcher<T>
- All Implemented Interfaces:
AutoCloseable
public class PostgresEventDispatcher<T extends io.debezium.spi.schema.DataCollectionId>
extends EventDispatcher<PostgresPartition,T>
Custom extension of the
EventDispatcher to accommodate routing LogicalDecodingMessage events to the change event queue.- Author:
- Lairen Hightower
-
Nested Class Summary
Nested classes/interfaces inherited from class io.debezium.pipeline.EventDispatcher
EventDispatcher.InconsistentSchemaHandler<P extends Partition,T extends io.debezium.spi.schema.DataCollectionId>, EventDispatcher.SnapshotReceiver<P extends Partition> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate final LogicalDecodingMessageMonitorprivate final LogicalDecodingMessageFilterprivate final ChangeEventQueue<DataChangeEvent> -
Constructor Summary
ConstructorsConstructorDescriptionPostgresEventDispatcher(PostgresConnectorConfig connectorConfig, io.debezium.spi.topic.TopicNamingStrategy<T> topicNamingStrategy, DatabaseSchema<T> schema, ChangeEventQueue<DataChangeEvent> queue, DataCollectionFilters.DataCollectionFilter<T> filter, ChangeEventCreator changeEventCreator, EventDispatcher.InconsistentSchemaHandler<PostgresPartition, T> inconsistentSchemaHandler, EventMetadataProvider metadataProvider, Heartbeat heartbeat, SchemaNameAdjuster schemaNameAdjuster, SignalProcessor<PostgresPartition, PostgresOffsetContext> signalProcessor) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispatchLogicalDecodingMessage(Partition partition, OffsetContext offset, Long decodeTimestamp, LogicalDecodingMessage message) private voidenqueueLogicalDecodingMessage(org.apache.kafka.connect.source.SourceRecord record) Methods inherited from class io.debezium.pipeline.EventDispatcher
alwaysDispatchHeartbeatEvent, close, dispatchConnectorEvent, dispatchDataChangeEvent, dispatchFilteredEvent, dispatchHeartbeatEvent, dispatchSchemaChangeEvent, dispatchSchemaChangeEvent, dispatchServerHeartbeatEvent, dispatchSnapshotEvent, dispatchTransactionCommittedEvent, dispatchTransactionStartedEvent, enqueueNotification, errorOnMissingSchema, getHistorizedSchema, getIncrementalSnapshotChangeEventReceiver, getIncrementalSnapshotChangeEventSource, getSchema, getSnapshotChangeEventReceiver, heartbeatsEnabled, ignoreMissingSchema, setEventListener, setIncrementalSnapshotChangeEventSource
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
queue
-
logicalDecodingMessageMonitor
-
messageFilter
-
-
Constructor Details
-
PostgresEventDispatcher
public PostgresEventDispatcher(PostgresConnectorConfig connectorConfig, io.debezium.spi.topic.TopicNamingStrategy<T> topicNamingStrategy, DatabaseSchema<T> schema, ChangeEventQueue<DataChangeEvent> queue, DataCollectionFilters.DataCollectionFilter<T> filter, ChangeEventCreator changeEventCreator, EventDispatcher.InconsistentSchemaHandler<PostgresPartition, T> inconsistentSchemaHandler, EventMetadataProvider metadataProvider, Heartbeat heartbeat, SchemaNameAdjuster schemaNameAdjuster, SignalProcessor<PostgresPartition, PostgresOffsetContext> signalProcessor)
-
-
Method Details
-
dispatchLogicalDecodingMessage
public void dispatchLogicalDecodingMessage(Partition partition, OffsetContext offset, Long decodeTimestamp, LogicalDecodingMessage message) throws InterruptedException - Throws:
InterruptedException
-
enqueueLogicalDecodingMessage
private void enqueueLogicalDecodingMessage(org.apache.kafka.connect.source.SourceRecord record) throws InterruptedException - Throws:
InterruptedException
-