final classKafkaProducerSink[K, V] extends Consumer[Seq[ProducerRecord[K, V]], Unit] with StrictLogging with Serializable
A monix.reactive.Consumer that pushes incoming messages into
a KafkaProducer.
You can customize behavior in case of an errors when sending messages to Kafka
with onSendError. The Task should return one of:
- Continue to ignore the errors and try again with the next batch
- Stop to stop the stream gracefully which will also commit latest batch if using KafkaConsumerObservableAutoCommit
- An error with Task.raiseError which will finish the stream with an error.
A
monix.reactive.Consumer
that pushes incoming messages into a KafkaProducer.You can customize behavior in case of an errors when sending messages to Kafka with
onSendError
. TheTask
should return one of: -Continue
to ignore the errors and try again with the next batch -Stop
to stop the stream gracefully which will also commit latest batch if using KafkaConsumerObservableAutoCommit - An error withTask.raiseError
which will finish the stream with an error.