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#applyto produce zero or more records and then emit a ProducerResult with the results and specified passthrough value.ProducerRecords#oneto 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
class Object
trait Matchable
class Any