KafkaConsumer

Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[F[_]]: ConsumerPartiallyApplied[F]
def resource[F[_], K, V](settings: ConsumerSettings[F, K, V])(F: ConcurrentEffect[F], context: ContextShift[F], timer: Timer[F]): Resource[F, KafkaConsumer[F, K, V]]

Creates a new KafkaConsumer in the Resource context, using the specified ConsumerSettings. Note that there is another version where F[_] is specified explicitly and the key and value type can be inferred, which allows you to use the following syntax.

Creates a new KafkaConsumer in the Resource context, using the specified ConsumerSettings. Note that there is another version where F[_] is specified explicitly and the key and value type can be inferred, which allows you to use the following syntax.

KafkaConsumer.resource[F].using(settings)
def stream[F[_], K, V](settings: ConsumerSettings[F, K, V])(F: ConcurrentEffect[F], context: ContextShift[F], timer: Timer[F]): Stream[F, KafkaConsumer[F, K, V]]

Creates a new KafkaConsumer in the Stream context, using the specified ConsumerSettings. Note that there is another version where F[_] is specified explicitly and the key and value type can be inferred, which allows you to use the following syntax.

Creates a new KafkaConsumer in the Stream context, using the specified ConsumerSettings. Note that there is another version where F[_] is specified explicitly and the key and value type can be inferred, which allows you to use the following syntax.

KafkaConsumer.stream[F].using(settings)

Deprecated methods

@deprecated("use KafkaConsumer.resource", "1.2.0")
def consumerResource[F[_], K, V](settings: ConsumerSettings[F, K, V])(F: ConcurrentEffect[F], context: ContextShift[F], timer: Timer[F]): Resource[F, KafkaConsumer[F, K, V]]
Deprecated
@deprecated("use KafkaConsumer[F].resource(settings)", "1.5.0")
def resource[F[_]](F: ConcurrentEffect[F]): ConsumerResource[F]

Alternative version of resource where the F[_] is specified explicitly, and where the key and value type can be inferred from the ConsumerSettings. This allows you to use the following syntax.

Alternative version of resource where the F[_] is specified explicitly, and where the key and value type can be inferred from the ConsumerSettings. This allows you to use the following syntax.

KafkaConsumer.resource[F].using(settings)
Deprecated
@deprecated("use KafkaConsumer[F].stream(settings)", "1.5.0")
def stream[F[_]](F: ConcurrentEffect[F]): ConsumerStream[F]

Alternative version of stream where the F[_] is specified explicitly, and where the key and value type can be inferred from the ConsumerSettings. This allows you to use the following syntax.

Alternative version of stream where the F[_] is specified explicitly, and where the key and value type can be inferred from the ConsumerSettings. This allows you to use the following syntax.

KafkaConsumer.stream[F].using(settings)
Deprecated