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 String
HEADERS
static String
KAFKA_DEFAULT_DESERIALIZER
static String
KAFKA_DEFAULT_ENCODER
Deprecated.static String
KAFKA_DEFAULT_PARTITIONER
static String
KAFKA_DEFAULT_SERIALIZER
static String
KAFKA_RECORDMETA
static String
KAFKA_STRING_ENCODER
Deprecated.static String
KEY
static String
LAST_POLL_RECORD
static String
LAST_RECORD_BEFORE_COMMIT
static String
MANUAL_COMMIT
static String
OFFSET
static String
OVERRIDE_TIMESTAMP
static String
OVERRIDE_TOPIC
static String
PARTITION
static String
PARTITION_KEY
static String
PARTITIONER_RANGE_ASSIGNOR
static String
TIMESTAMP
static String
TOPIC
-
-
-
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
-
-