Class SinkNotificationChannel
java.lang.Object
io.debezium.pipeline.notification.channels.SinkNotificationChannel
- All Implemented Interfaces:
ConnectChannel
,NotificationChannel
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
private BlockingConsumer<org.apache.kafka.connect.source.SourceRecord>
private org.apache.kafka.connect.data.Schema
private static final org.slf4j.Logger
static final Field
private String
private org.apache.kafka.connect.data.Schema
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
init
(CommonConnectorConfig config) void
initConnectChannel
(SchemaFactory schemaFactory, BlockingConsumer<org.apache.kafka.connect.source.SourceRecord> consumer) name()
void
send
(Notification notification) <P extends Partition,
O extends OffsetContext>
voidsend
(Notification notification, Offsets<P, O> offsets) private static int
validateNotificationTopicName
(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:
init
in interfaceNotificationChannel
-
initConnectChannel
public void initConnectChannel(SchemaFactory schemaFactory, BlockingConsumer<org.apache.kafka.connect.source.SourceRecord> consumer) - Specified by:
initConnectChannel
in interfaceConnectChannel
-
name
- Specified by:
name
in interfaceNotificationChannel
-
send
- Specified by:
send
in interfaceNotificationChannel
-
send
public <P extends Partition,O extends OffsetContext> void send(Notification notification, Offsets<P, O> offsets) - Specified by:
send
in interfaceConnectChannel
-
close
public void close()- Specified by:
close
in interfaceNotificationChannel
-