ConsumerResource

final class ConsumerResource[F[_]] extends AnyVal

ConsumerResource provides support for inferring the key and value type from ConsumerSettings when using KafkaConsumer.resource with the following syntax.

ConsumerResource provides support for inferring the key and value type from ConsumerSettings when using KafkaConsumer.resource with the following syntax.

KafkaConsumer.resource[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: ConsumerSettings[F, K, V])(context: ContextShift[F], timer: Timer[F]): Resource[F, KafkaConsumer[F, K, V]]

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

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