KafkaSubscription

trait KafkaSubscription[F[_]]
class Object
trait Matchable
class Any
class KafkaConsumer[F, K, V]

Value members

Abstract methods

def subscribe[G[_]](topics: G[String])(`evidence$1`: Reducible[G]): F[Unit]

Subscribes the consumer to the specified topics. Note that you have to use one of the subscribe functions to subscribe to one or more topics before using any of the provided Streams, or a NotSubscribedException will be raised in the Streams.

Subscribes the consumer to the specified topics. Note that you have to use one of the subscribe functions to subscribe to one or more topics before using any of the provided Streams, or a NotSubscribedException will be raised in the Streams.

Value Params
topics

the topics to which the consumer should subscribe

def subscribe(regex: Regex): F[Unit]

Subscribes the consumer to the topics matching the specified Regex. Note that you have to use one of the subscribe functions before you can use any of the provided Streams, or a NotSubscribedException will be raised in the Streams.

Subscribes the consumer to the topics matching the specified Regex. Note that you have to use one of the subscribe functions before you can use any of the provided Streams, or a NotSubscribedException will be raised in the Streams.

Value Params
regex

the regex to which matching topics should be subscribed

def subscribeTo(firstTopic: String, remainingTopics: String*): F[Unit]

Subscribes the consumer to the specified topics. Note that you have to use one of the subscribe functions to subscribe to one or more topics before using any of the provided Streams, or a NotSubscribedException will be raised in the Streams.

Subscribes the consumer to the specified topics. Note that you have to use one of the subscribe functions to subscribe to one or more topics before using any of the provided Streams, or a NotSubscribedException will be raised in the Streams.

def unsubscribe: F[Unit]

Unsubscribes the consumer from all topics and partitions assigned by subscribe or assign.

Unsubscribes the consumer from all topics and partitions assigned by subscribe or assign.