Class KafkaEndpointBuilderFactory.KafkaHeaderNameBuilder
java.lang.Object
org.apache.camel.builder.endpoint.dsl.KafkaEndpointBuilderFactory.KafkaHeaderNameBuilder
- Enclosing interface:
- KafkaEndpointBuilderFactory
The builder of headers' name for the Kafka component.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe record headers.kafkaKey()
Producer: The key of the message in order to ensure that all related message goes in the same partition.Indicates the last record within the current poll request (only available if autoCommitEnable endpoint parameter is false or allowManualCommit is true).Whether or not it's the last record before commit (only available if autoCommitEnable endpoint parameter is false).Can be used for forcing manual offset commit when using Kafka consumer.The offset of the message.The ProducerRecord also has an associated timestamp.The topic to which send the message (override and takes precedence), and the header is not preserved.The partition where the message was stored.Explicitly specify the partition.The timestamp of the message.The topic from where the message originated.The metadata (only configured if recordMetadata endpoint parameter is true).
-
Constructor Details
-
KafkaHeaderNameBuilder
public KafkaHeaderNameBuilder()
-
-
Method Details
-
kafkaPartitionKey
Explicitly specify the partition. The option is a:Integer
type. Group: producer- Returns:
- the name of the header
kafka.PARTITION_KEY
.
-
kafkaPartition
The partition where the message was stored. The option is a:Integer
type. Group: consumer- Returns:
- the name of the header
kafka.PARTITION
.
-
kafkaKey
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. The option is a:Object
type. Required: true Group: common- Returns:
- the name of the header
kafka.KEY
.
-
kafkaTopic
The topic from where the message originated. The option is a:String
type. Group: consumer- Returns:
- the name of the header
kafka.TOPIC
.
-
kafkaOverrideTopic
The topic to which send the message (override and takes precedence), and the header is not preserved. The option is a:String
type. Group: producer- Returns:
- the name of the header
kafka.OVERRIDE_TOPIC
.
-
kafkaOffset
The offset of the message. The option is a:Long
type. Group: consumer- Returns:
- the name of the header
kafka.OFFSET
.
-
kafkaHeaders
The record headers. The option is a:org.apache.kafka.common.header.Headers
type. Group: consumer- Returns:
- the name of the header
kafka.HEADERS
.
-
kafkaLastRecordBeforeCommit
Whether or not it's the last record before commit (only available if autoCommitEnable endpoint parameter is false). The option is a:Boolean
type. Group: consumer- Returns:
- the name of the header
kafka.LAST_RECORD_BEFORE_COMMIT
.
-
kafkaLastPollRecord
Indicates the last record within the current poll request (only available if autoCommitEnable endpoint parameter is false or allowManualCommit is true). The option is a:Boolean
type. Group: consumer- Returns:
- the name of the header
kafka.LAST_POLL_RECORD
.
-
kafkaTimestamp
The timestamp of the message. The option is a:Long
type. Group: consumer- Returns:
- the name of the header
kafka.TIMESTAMP
.
-
kafkaOverrideTimestamp
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. The option is a:Long
type. Group: producer- Returns:
- the name of the header
kafka.OVERRIDE_TIMESTAMP
.
-
orgApacheKafkaClientsProducerRecordmetadata
The metadata (only configured if recordMetadata endpoint parameter is true). The option is a:List<RecordMetadata>
type. Group: producer- Returns:
- the name of the header
org.apache.kafka.clients.producer.RecordMetadata
.
-
kafkaManualCommit
Can be used for forcing manual offset commit when using Kafka consumer. The option is a:org.apache.camel.component.kafka.consumer.KafkaManualCommit
type. Group: consumer- Returns:
- the name of the header
KafkaManualCommit
.
-