ConsumerRecord represents a record which has been consumed from Kafka. At the very least, this includes a key of type K
, value of type V
, and the topic, partition, and offset of the consumed record.
To create a new instance, use ConsumerRecord#apply
Attributes
- Companion
- object
- Source
- ConsumerRecord.scala
- Graph
-
- Supertypes
Members list
Value members
Abstract methods
The record headers.
The record key.
The leader epoch if available.
The offset from which the record has been consumed.
The partition from which the record has been consumed.
The serialized key size if available.
The serialized value size if available.
The record timestamp.
The topic from which the record has been consumed.
The record value.
Creates a new ConsumerRecord instance with the specified headers as the headers for the record.
Creates a new ConsumerRecord instance with the specified headers as the headers for the record.
Attributes
- Source
- ConsumerRecord.scala
Creates a new ConsumerRecord instance with the specified leader epoch as the epoch for the record.
Creates a new ConsumerRecord instance with the specified leader epoch as the epoch for the record.
Attributes
- Source
- ConsumerRecord.scala
Creates a new ConsumerRecord instance with the specified key size as the key size for the record.
Creates a new ConsumerRecord instance with the specified key size as the key size for the record.
Attributes
- Source
- ConsumerRecord.scala
Creates a new ConsumerRecord instance with the specified value size as the size for the record.
Creates a new ConsumerRecord instance with the specified value size as the size for the record.
Attributes
- Source
- ConsumerRecord.scala
Creates a new ConsumerRecord instance with the specified timestamp as the timestamp for the record.
Creates a new ConsumerRecord instance with the specified timestamp as the timestamp for the record.
Attributes
- Source
- ConsumerRecord.scala