CommittableProducerRecords

sealed abstract class CommittableProducerRecords[F[_], +K, +V]

CommittableProducerRecords represents zero or more ProducerRecords and a CommittableOffset, used by TransactionalKafkaProducer to produce the records and commit the offset atomically.

CommittableProducerRecordss can be created using one of the following options.

  • CommittableProducerRecords#apply to produce zero or more records within the same transaction as the offset is committed.
  • CommittableProducerRecords#one to produce exactly one record within the same transaction as the offset is committed.
Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

The offset to commit.

The offset to commit.

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

The records to produce. Can be empty to simply commit the offset.

The records to produce. Can be empty to simply commit the offset.