Package org.apache.camel.component.kafka
Class KafkaConstants
- java.lang.Object
-
- org.apache.camel.component.kafka.KafkaConstants
-
public final class KafkaConstants extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringHEADERSstatic StringKAFKA_DEFAULT_DESERIALIZERstatic StringKAFKA_DEFAULT_ENCODERDeprecated.static StringKAFKA_DEFAULT_PARTITIONERstatic StringKAFKA_DEFAULT_SERIALIZERstatic StringKAFKA_RECORDMETAstatic StringKAFKA_STRING_ENCODERDeprecated.static StringKEYstatic StringLAST_POLL_RECORDstatic StringLAST_RECORD_BEFORE_COMMITstatic StringMANUAL_COMMITstatic StringOFFSETstatic StringOVERRIDE_TIMESTAMPstatic StringOVERRIDE_TOPICstatic StringPARTITIONstatic StringPARTITION_KEYstatic StringPARTITIONER_RANGE_ASSIGNORstatic StringTIMESTAMPstatic StringTOPIC
-
-
-
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_DEFAULT_ENCODER
@Deprecated public static final String KAFKA_DEFAULT_ENCODER
Deprecated.- See Also:
- Constant Field Values
-
KAFKA_STRING_ENCODER
@Deprecated public static final String KAFKA_STRING_ENCODER
Deprecated.- See Also:
- Constant Field Values
-
KAFKA_DEFAULT_SERIALIZER
public static final String KAFKA_DEFAULT_SERIALIZER
- See Also:
- Constant Field Values
-
KAFKA_DEFAULT_DESERIALIZER
public static final String KAFKA_DEFAULT_DESERIALIZER
- See Also:
- Constant Field Values
-
KAFKA_DEFAULT_PARTITIONER
public static final String KAFKA_DEFAULT_PARTITIONER
- See Also:
- Constant Field Values
-
PARTITIONER_RANGE_ASSIGNOR
public static final String PARTITIONER_RANGE_ASSIGNOR
- 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
-
-