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

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

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

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

Attributes

Source
KafkaProducer.scala
Supertypes
class KafkaProducer[F, K, V]
class Object
trait Matchable
class Any
Known subtypes
class PartitionsFor[F, K, V]
abstract class PartitionsFor[F[_], K, V] extends Metrics[F, K, V]

KafkaProducer.PartitionsFor extends KafkaProducer.Metrics to provide access to the underlying producer partitions.

KafkaProducer.PartitionsFor extends KafkaProducer.Metrics to provide access to the underlying producer partitions.

Attributes

Source
KafkaProducer.scala
Supertypes
class Metrics[F, K, V]
class KafkaProducer[F, K, V]
class Object
trait Matchable
class Any
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

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, PartitionsFor[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, PartitionsFor[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

Implicits

Implicits

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

Attributes

Source
KafkaProducer.scala