TransactionalProducerRecords

sealed abstract class TransactionalProducerRecords[F[_], +P, +K, +V]

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
class Object
trait Matchable
class Any

Value members

Abstract methods

The passthrough to emit once all records have been produced and committed.

The passthrough to emit once all records have been produced and committed.

Source:
TransactionalProducerRecords.scala

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

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

Source:
TransactionalProducerRecords.scala