ConsumerRecord

fs2.kafka.ConsumerRecord
See theConsumerRecord companion object
sealed abstract class ConsumerRecord[+K, +V]

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
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

The record headers.

The record headers.

Attributes

Source
ConsumerRecord.scala
def key: K

The record key.

The record key.

Attributes

Source
ConsumerRecord.scala

The leader epoch if available.

The leader epoch if available.

Attributes

Source
ConsumerRecord.scala
def offset: Long

The offset from which the record has been consumed.

The offset from which the record has been consumed.

Attributes

Source
ConsumerRecord.scala
def partition: Int

The partition from which the record has been consumed.

The partition from which the record has been consumed.

Attributes

Source
ConsumerRecord.scala

The serialized key size if available.

The serialized key size if available.

Attributes

Source
ConsumerRecord.scala

The serialized value size if available.

The serialized value size if available.

Attributes

Source
ConsumerRecord.scala

The record timestamp.

The record timestamp.

Attributes

Source
ConsumerRecord.scala
def topic: String

The topic from which the record has been consumed.

The topic from which the record has been consumed.

Attributes

Source
ConsumerRecord.scala
def value: V

The record value.

The record value.

Attributes

Source
ConsumerRecord.scala
def withHeaders(headers: Headers): ConsumerRecord[K, V]

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
def withLeaderEpoch(leaderEpoch: Int): ConsumerRecord[K, V]

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
def withSerializedKeySize(serializedKeySize: Int): ConsumerRecord[K, V]

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
def withSerializedValueSize(serializedValueSize: Int): ConsumerRecord[K, V]

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
def withTimestamp(timestamp: Timestamp): ConsumerRecord[K, V]

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