ProducerStream

final class ProducerStream[F[_]] extends AnyVal

ProducerStream provides support for inferring the key and value type from ProducerSettings when using KafkaProducer.stream with the following syntax.

ProducerStream provides support for inferring the key and value type from ProducerSettings when using KafkaProducer.stream with the following syntax.

KafkaProducer.stream[F].using(settings)
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

override def toString: String
Definition Classes
Any
def using[K, V](settings: ProducerSettings[F, K, V])(context: ContextShift[F]): Stream[F, Metrics[F, K, V]]

Creates a new KafkaProducer in the Stream context. This is equivalent to using KafkaProducer.stream directly, except we're able to infer the key and value type.

Creates a new KafkaProducer in the Stream context. This is equivalent to using KafkaProducer.stream directly, except we're able to infer the key and value type.