ProducerStream
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
def using[K, V](settings: ProducerSettings[F, K, V])(implicit 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.