Represents zero or more CommittableProducerRecords, together with
arbitrary passthrough value, all of which can be used together with a
TransactionalKafkaProducer to produce records and commit offsets
within a single transaction.
TransactionalProducerRecordss can be created using one of the
following options.
TransactionalProducerRecords#apply
to produce zero or more records, commit the offsets, and then emit a ProducerResult with the results and specified passthrough value.TransactionalProducerRecords#one
to produce zero or more records, commit exactly one offset, then emit a ProducerResult with the results and specified passthrough value.
- Companion:
- object
- Source:
- TransactionalProducerRecords.scala