WithoutOffsets

abstract class WithoutOffsets[F[_], K, V] extends Metrics[F, K, V]

TransactionalKafkaProducer.WithoutOffsets extends TransactionalKafkaProducer.Metrics to allow producing of records without corresponding upstream offsets.

class Metrics[F, K, V]
class Object
trait Matchable
class Any

Value members

Abstract methods

Produces the ProducerRecords in the specified ProducerRecords in three steps: first a transaction is initialized, then the records are placed in the buffer of the producer, 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 ProducerRecords in the specified ProducerRecords in three steps: first a transaction is initialized, then the records are placed in the buffer of the producer, 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.

Inherited methods

def metrics: F[Map[MetricName, Metric]]

Returns producer metrics.

Returns producer metrics.

See also:

org.apache.kafka.clients.producer.KafkaProducer#metrics

Inherited from:
Metrics
def produce(records: TransactionalProducerRecords[F, K, V]): F[ProducerResult[K, V]]

Produces the ProducerRecords 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 ProducerRecords 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.

Inherited from:
TransactionalKafkaProducer