sealed abstract class ConsumerRecord[+K, +V] extends AnyRef
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
- Source
- ConsumerRecord.scala
- Alphabetic
- By Inheritance
- ConsumerRecord
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def headers: Headers
The record headers.
- abstract def key: K
The record key.
- abstract def leaderEpoch: Option[Int]
The leader epoch if available.
- abstract def offset: Long
The offset from which the record has been consumed.
- abstract def partition: Int
The partition from which the record has been consumed.
- abstract def serializedKeySize: Option[Int]
The serialized key size if available.
- abstract def serializedValueSize: Option[Int]
The serialized value size if available.
- abstract def timestamp: Timestamp
The record timestamp.
- abstract def topic: String
The topic from which the record has been consumed.
- abstract def value: V
The record value.
- abstract def withHeaders(headers: Headers): ConsumerRecord[K, V]
Creates a new ConsumerRecord instance with the specified headers as the headers for the record.
- abstract def withLeaderEpoch(leaderEpoch: Int): ConsumerRecord[K, V]
Creates a new ConsumerRecord instance with the specified leader epoch as the epoch for the record.
- abstract def withSerializedKeySize(serializedKeySize: Int): ConsumerRecord[K, V]
Creates a new ConsumerRecord instance with the specified key size as the key size for the record.
- abstract def withSerializedValueSize(serializedValueSize: Int): ConsumerRecord[K, V]
Creates a new ConsumerRecord instance with the specified value size as the size for the record.
- abstract def withTimestamp(timestamp: Timestamp): ConsumerRecord[K, V]
Creates a new ConsumerRecord instance with the specified timestamp as the timestamp for the record.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()