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

    Fields
    Modifier and Type
    Field
    Description
    static 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

    Modifier and Type
    Method
    Description
    default K
     
    default String
     

    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

      static final String 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

      static final String CE_KAFKA_TOPIC
      Extension - attribute name associated with the record's topic.
      See Also:
  • Method Details

    • getKey

      default K getKey()
      Returns:
      the record's key, @{code null} if none
    • getTopic

      default String getTopic()
      Returns:
      the topic