Consume messages from one or many topics and return them as a lazily evaluated Scala Stream.
Consume messages from one or many topics and return them as a lazily evaluated Scala Stream. Depending on how many messages are taken from the Scala Stream it will try up to retryConf.maximumAttempts times to consume batches from the given topic, until it reaches the number of desired messages or return otherwise.
the topics from which to consume messages
the function to use for decoding all ConsumerRecord
contains the maximum number of attempts to try and get the next batch and the amount of time, in milliseconds, to wait in the buffer for any messages to be available
the stream of consumed messages that you can do .take(n: Int).toList
to evaluate the requested number of messages.