public abstract class KafkaHeaders
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACKNOWLEDGMENT
The header for the
Acknowledgment . |
static java.lang.String |
BATCH_CONVERTED_HEADERS
The header for a list of Maps of converted native Kafka headers.
|
static java.lang.String |
CONSUMER
The header for the
Consumer object. |
static java.lang.String |
MESSAGE_KEY
The header containing the message key when sending data to Kafka.
|
static java.lang.String |
NATIVE_HEADERS
The header for holding the native headers of the consumer record; only provided
if no header mapper is present.
|
static java.lang.String |
OFFSET
The header for the partition offset.
|
static java.lang.String |
PARTITION_ID
The header containing the topic partition when sending data to Kafka.
|
static java.lang.String |
RAW_DATA
The header containing the raw data received from Kafka (
ConsumerRecord or
ConsumerRecords ). |
static java.lang.String |
RECEIVED_MESSAGE_KEY
The header containing the message key for the received message.
|
static java.lang.String |
RECEIVED_PARTITION_ID
The header containing the topic partition for the received message.
|
static java.lang.String |
RECEIVED_TIMESTAMP
The header for holding the timestamp of the consumer record.
|
static java.lang.String |
RECEIVED_TOPIC
The header containing the topic from which the message was received.
|
static java.lang.String |
RECORD_METADATA
The header containing the
RecordMetadata object after successful send to the topic. |
static java.lang.String |
TIMESTAMP
The header for holding the timestamp of the producer record.
|
static java.lang.String |
TIMESTAMP_TYPE
The header for holding the
type of timestamp. |
static java.lang.String |
TOPIC
The header containing the topic when sending data to Kafka.
|
Constructor and Description |
---|
KafkaHeaders() |
public static final java.lang.String TOPIC
public static final java.lang.String MESSAGE_KEY
public static final java.lang.String PARTITION_ID
public static final java.lang.String OFFSET
public static final java.lang.String RAW_DATA
ConsumerRecord
or
ConsumerRecords
). Usually used to enhance error messages.public static final java.lang.String RECORD_METADATA
RecordMetadata
object after successful send to the topic.public static final java.lang.String ACKNOWLEDGMENT
Acknowledgment
.public static final java.lang.String CONSUMER
Consumer
object.public static final java.lang.String RECEIVED_TOPIC
public static final java.lang.String RECEIVED_MESSAGE_KEY
public static final java.lang.String RECEIVED_PARTITION_ID
public static final java.lang.String TIMESTAMP_TYPE
type
of timestamp.public static final java.lang.String TIMESTAMP
public static final java.lang.String RECEIVED_TIMESTAMP
public static final java.lang.String NATIVE_HEADERS
public static final java.lang.String BATCH_CONVERTED_HEADERS