Interface IncomingKafkaCloudEventMetadata<K,T>
- Type Parameters:
T
- the data type
- All Superinterfaces:
io.smallrye.reactive.messaging.ce.CloudEventMetadata<T>
,io.smallrye.reactive.messaging.ce.IncomingCloudEventMetadata<T>
- All Known Implementing Classes:
DefaultIncomingKafkaCloudEventMetadata
public interface IncomingKafkaCloudEventMetadata<K,T>
extends io.smallrye.reactive.messaging.ce.IncomingCloudEventMetadata<T>
Addition "extension" attribute specific to incoming Kafka record
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Extension - attribute name associated with the record's key.static final String
Extension - attribute name associated with the record's topic.Fields inherited from interface io.smallrye.reactive.messaging.ce.CloudEventMetadata
CE_ATTRIBUTE_DATA_CONTENT_TYPE, CE_ATTRIBUTE_DATA_SCHEMA, CE_ATTRIBUTE_ID, CE_ATTRIBUTE_SOURCE, CE_ATTRIBUTE_SPEC_VERSION, CE_ATTRIBUTE_SUBJECT, CE_ATTRIBUTE_TIME, CE_ATTRIBUTE_TYPE, CE_VERSION_1_0
-
Method Summary
Methods inherited from interface io.smallrye.reactive.messaging.ce.CloudEventMetadata
getData, getDataContentType, getDataSchema, getExtension, getExtensions, getId, getSource, getSpecVersion, getSubject, getTimeStamp, getType
-
Field Details
-
CE_KAFKA_KEY
Extension - attribute name associated with the record's key. Defined in the Kafka Protocol Binding for Cloud Events- See Also:
-
CE_KAFKA_TOPIC
Extension - attribute name associated with the record's topic.- See Also:
-
-
Method Details
-
getKey
- Returns:
- the record's key, @{code null} if none
-
getTopic
- Returns:
- the topic
-