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.

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

The [[passthrough]] and [[records]] can be retrieved from an existing [[ProducerRecords]] instance.
Companion:
object
Source:
ProducerRecords.scala
class Object
trait Matchable
class Any

Value members

Abstract methods

The passthrough to emit once all records have been produced.

The passthrough to emit once all records have been produced.

Source:
ProducerRecords.scala

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

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

Source:
ProducerRecords.scala