KafkaRecord

final case
class KafkaRecord[K, A](topic: String, key: K, timestamp: Long, offset: Offset, recordBody: A, headers: Map[String, String])

Our own representation of the deserialized data

Value Params
key

the record key

offset

the commit offset

recordBody

the deserialized message body

timestamp

the kafka record timestamp

Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def recordJson: Json

The generic record as json, combined with a 'kafka' json element

The generic record as json, combined with a 'kafka' json element

Returns

the avro record as Json (it may fail, but if it did realistically that'd be a library bug)

def recordJsonString: String

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product