Metrics

fs2.kafka.TransactionalKafkaProducer.Metrics
abstract class Metrics[F[_], K, V] extends TransactionalKafkaProducer[F, K, V]

TransactionalKafkaProducer.Metrics extends TransactionalKafkaProducer to provide access to the underlying producer metrics.

Attributes

Source
TransactionalKafkaProducer.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class WithoutOffsets[F, K, V]

Members list

Value members

Abstract methods

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

Returns producer metrics.

Returns producer metrics.

Attributes

See also

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

Source
TransactionalKafkaProducer.scala

Inherited methods

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.

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.

Attributes

Inherited from:
TransactionalKafkaProducer
Source
TransactionalKafkaProducer.scala