MkProducer

fs2.kafka.producer.MkProducer
See theMkProducer companion object
trait MkProducer[F[_]]

A capability trait representing the ability to instantiate the Java Producer that underlies the fs2-kafka KafkaProducer. This is needed in order to instantiate fs2.kafka.KafkaProducer and fs2.kafka.TransactionalKafkaProducer.

By default, the instance provided by MkProducer.mkProducerForSync will be used. However this behaviour can be overridden, e.g. for testing purposes, by placing an alternative implicit instance in lexical scope.

Attributes

Companion
object
Source
MkProducer.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def apply[G[_]](settings: ProducerSettings[G, _, _]): F[KafkaByteProducer]

Attributes

Source
MkProducer.scala