Create a new Kafka consumer.
Create a new Kafka consumer.
the type of the consumer's Key
the type of the consumer's Value
the new consumer
Loaner pattern that allows running a code block with a newly created consumer.
Loaner pattern that allows running a code block with a newly created consumer. The consumer's lifecycle will be automatically handled and closed at the end of the given code block.
the type of the consumer's Key
the type of the consumer's Value
the type of the block's returning result
the code block to be executed with the instantiated consumer passed as an argument
the result of the executed block
Convenience alternative to withConsumer
that offers a consumer for String keys and values.
Convenience alternative to withConsumer
that offers a consumer for String keys and values.
the type of the result of the code block
the block to be executed with the consumer
the code block result
Utility trait for easily creating Kafka consumers and accessing their consumed messages.