Represents a producer of Kafka records specialized for 'read-process-write'
streams, with the ability to atomically produce ProducerRecord
s and commit
corresponding CommittableOffsets using produce.
Records are wrapped in TransactionalProducerRecords which allow an
arbitrary passthrough value to be included in the result.
Represents a producer of Kafka records specialized for 'read-process-write'
streams, with the ability to atomically produce ProducerRecord
s and commit
corresponding CommittableOffsets using produce.
Records are wrapped in TransactionalProducerRecords which allow an
arbitrary passthrough value to be included in the result.
- Companion
- object
Value members
Abstract methods
Produces the ProducerRecord
s in the specified TransactionalProducerRecords
in four steps: first a transaction is initialized, then the records are placed
in the buffer of the producer, then the offsets of the records are sent to the
transaction, and lastly the transaction is committed. If errors or cancellation
occurs, the transaction is aborted. The returned effect succeeds if the whole
transaction completes successfully.
Produces the ProducerRecord
s in the specified TransactionalProducerRecords
in four steps: first a transaction is initialized, then the records are placed
in the buffer of the producer, then the offsets of the records are sent to the
transaction, and lastly the transaction is committed. If errors or cancellation
occurs, the transaction is aborted. The returned effect succeeds if the whole
transaction completes successfully.