TransactionalProducerRecords

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

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.

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

Value members

Abstract methods

def passthrough: P

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

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

def records: Chunk[CommittableProducerRecords[F, K, V]]

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

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