ProducerRecords

sealed abstract class ProducerRecords[+P, +K, +V]

ProducerRecords represents zero or more ProducerRecords, together with an arbitrary passthrough value, all of which can be used with KafkaProducer. ProducerRecordss can be created using one of the following options.<br> <br>

  • ProducerRecords#apply to produce zero or more records and then emit a ProducerResult with the results and specified passthrough value.<br>
  • ProducerRecords#one to produce exactly one record and then emit a ProducerResult with the result and specified passthrough value.<br>

<br> The [[passthrough]] and [[records]] can be retrieved from an existing [[ProducerRecords]] instance.<br>

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def passthrough: P

The passthrough to emit once all records have been produced.

The passthrough to emit once all records have been produced.

def records: Chunk[ProducerRecord[K, V]]

The records to produce. Can be empty for passthrough-only.

The records to produce. Can be empty for passthrough-only.