Class KafkaConstants


  • public final class KafkaConstants
    extends Object
    • Field Detail

      • PARTITION_KEY

        @Metadata(label="producer",
                  description="Explicitly specify the partition",
                  javaType="Integer")
        public static final String PARTITION_KEY
        See Also:
        Constant Field Values
      • PARTITION

        @Metadata(label="consumer",
                  description="The partition where the message was stored",
                  javaType="Integer")
        public static final String PARTITION
        See Also:
        Constant Field Values
      • KEY

        @Metadata(description="*Producer:* The key of the message in order to ensure that all related message goes in the same partition. *Consumer:* The key of the message if configured",
                  javaType="Object",
                  required=true)
        public static final String KEY
        See Also:
        Constant Field Values
      • TOPIC

        @Metadata(label="consumer",
                  description="The topic from where the message originated",
                  javaType="String")
        public static final String TOPIC
        See Also:
        Constant Field Values
      • OVERRIDE_TOPIC

        @Metadata(label="producer",
                  description="The topic to which send the message (override and takes precedence), and the header is not preserved.",
                  javaType="String")
        public static final String OVERRIDE_TOPIC
        See Also:
        Constant Field Values
      • OFFSET

        @Metadata(label="consumer",
                  description="The offset of the message",
                  javaType="Long")
        public static final String OFFSET
        See Also:
        Constant Field Values
      • HEADERS

        @Metadata(label="consumer",
                  description="The record headers",
                  javaType="org.apache.kafka.common.header.Headers")
        public static final String HEADERS
        See Also:
        Constant Field Values
      • LAST_RECORD_BEFORE_COMMIT

        @Metadata(label="consumer",
                  description="Whether or not it\'s the last record before commit (only available if `autoCommitEnable` endpoint parameter is `false`)",
                  javaType="Boolean")
        public static final String LAST_RECORD_BEFORE_COMMIT
        See Also:
        Constant Field Values
      • LAST_POLL_RECORD

        @Metadata(label="consumer",
                  description="Indicates the last record within the current poll request (only available if `autoCommitEnable` endpoint parameter is `false` or `allowManualCommit` is `true`)",
                  javaType="Boolean")
        public static final String LAST_POLL_RECORD
        See Also:
        Constant Field Values
      • TIMESTAMP

        @Metadata(label="consumer",
                  description="The timestamp of the message",
                  javaType="Long")
        public static final String TIMESTAMP
        See Also:
        Constant Field Values
      • OVERRIDE_TIMESTAMP

        @Metadata(label="producer",
                  description="The ProducerRecord also has an associated timestamp. If the user did provide a timestamp, the producer will stamp the  record with the provided timestamp and the header is not preserved.",
                  javaType="Long")
        public static final String OVERRIDE_TIMESTAMP
        See Also:
        Constant Field Values
      • KAFKA_RECORDMETA

        @Metadata(label="producer",
                  description="The metadata (only configured if `recordMetadata` endpoint parameter is `true`)",
                  javaType="List<RecordMetadata>")
        public static final String KAFKA_RECORDMETA
        See Also:
        Constant Field Values
      • MANUAL_COMMIT

        @Metadata(label="consumer",
                  description="Can be used for forcing manual offset commit when using Kafka consumer.",
                  javaType="org.apache.camel.component.kafka.consumer.KafkaManualCommit")
        public static final String MANUAL_COMMIT
        See Also:
        Constant Field Values