KafkaProducer

fs2.kafka.KafkaProducer
See theKafkaProducer companion class
object KafkaProducer

Attributes

Companion
class
Source
KafkaProducer.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final implicit class ProducerOps[F[_], K, V](producer: KafkaProducer[F, K, V]) extends AnyVal

Attributes

Source
KafkaProducer.scala
Supertypes
class AnyVal
trait Matchable
class Any
trait WithSettings[F[_], K, V] extends KafkaProducer[F, K, V]

Attributes

Source
KafkaProducer.scala
Supertypes
class KafkaProducer[F, K, V]
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[F[_]]: ProducerPartiallyApplied[F]

Attributes

Source
KafkaProducer.scala
def pipe[F[_], K, V](settings: ProducerSettings[F, K, V])(implicit F: Async[F], mk: MkProducer[F]): (F, ProducerRecords[K, V]) => ProducerResult[K, V]

Creates a KafkaProducer using the provided settings and produces record in batches.

Creates a KafkaProducer using the provided settings and produces record in batches.

Attributes

Source
KafkaProducer.scala
def pipe[F[_] : Concurrent, K, V](producer: KafkaProducer[F, K, V]): (F, ProducerRecords[K, V]) => ProducerResult[K, V]

Produces records in batches using the provided KafkaProducer.

Produces records in batches using the provided KafkaProducer.

Attributes

Source
KafkaProducer.scala
def resource[F[_], K, V](settings: ProducerSettings[F, K, V])(implicit F: Async[F], mk: MkProducer[F]): Resource[F, WithSettings[F, K, V]]

Creates a new KafkaProducer in the Resource context, using the specified ProducerSettings.

Creates a new KafkaProducer in the Resource context, using the specified ProducerSettings. Note that there is another version where F[_] is specified explicitly and the key and value type can be inferred, which allows you to use the following syntax.

KafkaProducer.resource[F].using(settings)

Attributes

Source
KafkaProducer.scala
def stream[F[_], K, V](settings: ProducerSettings[F, K, V])(implicit F: Async[F], mk: MkProducer[F]): Stream[F, WithSettings[F, K, V]]

Creates a new KafkaProducer in the Stream context, using the specified ProducerSettings.

Creates a new KafkaProducer in the Stream context, using the specified ProducerSettings. Note that there is another version where F[_] is specified explicitly and the key and value type can be inferred, which allows you to use the following syntax.

KafkaProducer.stream[F].using(settings)

Attributes

Source
KafkaProducer.scala
def transactional[F[_], K, V](settings: ProducerSettings[F, K, V])(implicit F: Async[F], mk: MkProducer[F]): Resource[F, WithSettings[F, K, V]]

Creates a new transactional KafkaProducer in the Resource context, using the specified ProducerSettings.

Creates a new transactional KafkaProducer in the Resource context, using the specified ProducerSettings.

This function will automatically invoke KafkaProducer#initTransactions when the producer is created.

Attributes

Source
KafkaProducer.scala
def transactionalStream[F[_], K, V](settings: ProducerSettings[F, K, V])(implicit F: Async[F], mk: MkProducer[F]): Stream[F, WithSettings[F, K, V]]

Creates a new transactional KafkaProducer in the Stream context, using the specified ProducerSettings.

Creates a new transactional KafkaProducer in the Stream context, using the specified ProducerSettings.

This function will automatically invoke KafkaProducer#initTransactions when the producer is created.

Attributes

Source
KafkaProducer.scala

Implicits

Implicits

final implicit def ProducerOps[F[_], K, V](producer: KafkaProducer[F, K, V]): ProducerOps[F, K, V]

Attributes

Source
KafkaProducer.scala