Class SinkNotificationChannel
java.lang.Object
io.debezium.pipeline.notification.channels.SinkNotificationChannel
- All Implemented Interfaces:
ConnectChannel,NotificationChannel
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprivate BlockingConsumer<org.apache.kafka.connect.source.SourceRecord>private org.apache.kafka.connect.data.Schemaprivate static final org.slf4j.Loggerstatic final Fieldprivate Stringprivate org.apache.kafka.connect.data.Schema -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidinit(CommonConnectorConfig config) voidinitConnectChannel(SchemaFactory schemaFactory, BlockingConsumer<org.apache.kafka.connect.source.SourceRecord> consumer) name()voidsend(Notification notification) <P extends Partition,O extends OffsetContext>
voidsend(Notification notification, Offsets<P, O> offsets) private static intvalidateNotificationTopicName(Configuration config, Field field, Field.ValidationOutput problems)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
NOTIFICATION_TOPIC
-
CHANNEL_NAME
- See Also:
-
consumer
-
keySchema
private org.apache.kafka.connect.data.Schema keySchema -
valueSchema
private org.apache.kafka.connect.data.Schema valueSchema -
topicName
-
-
Constructor Details
-
SinkNotificationChannel
public SinkNotificationChannel()
-
-
Method Details
-
validateNotificationTopicName
private static int validateNotificationTopicName(Configuration config, Field field, Field.ValidationOutput problems) -
init
- Specified by:
initin interfaceNotificationChannel
-
initConnectChannel
public void initConnectChannel(SchemaFactory schemaFactory, BlockingConsumer<org.apache.kafka.connect.source.SourceRecord> consumer) - Specified by:
initConnectChannelin interfaceConnectChannel
-
name
- Specified by:
namein interfaceNotificationChannel
-
send
- Specified by:
sendin interfaceNotificationChannel
-
send
public <P extends Partition,O extends OffsetContext> void send(Notification notification, Offsets<P, O> offsets) - Specified by:
sendin interfaceConnectChannel
-
close
public void close()- Specified by:
closein interfaceNotificationChannel
-