Package io.debezium.converters.spi
Interface CloudEventsProvider
public interface CloudEventsProvider
A
ServiceLoader interface that connectors should implement if they wish to provide
a way to emit change events using the CloudEvents converter and format.- Author:
- Chris Cranford
-
Method Summary
Modifier and TypeMethodDescriptioncreateMaker(RecordAndMetadata recordAndMetadata, SerializerType contentType, String dataSchemaUriBase, String cloudEventsSchemaName) Create a concrete CloudEvents maker using the outputs of a record parser.getName()The connector name specified in the record's source info block.
-
Method Details
-
getName
String getName()The connector name specified in the record's source info block.- Returns:
- the provider name
-
createMaker
CloudEventsMaker createMaker(RecordAndMetadata recordAndMetadata, SerializerType contentType, String dataSchemaUriBase, String cloudEventsSchemaName) Create a concrete CloudEvents maker using the outputs of a record parser. Also need to specify the data content type (that is the serialization format of the data attribute).- Parameters:
recordAndMetadata- a structure containing the record and its metadatacontentType- the data content type of CloudEventsdataSchemaUriBase- the URI of the schema in case of Avro; may be null- Returns:
- a concrete CloudEvents maker
-