Subscription

Companion:
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any

Type members

Classlikes

final case class Manual(topicPartitions: Set[TopicPartition]) extends Subscription
final case class Pattern(pattern: Regex) extends Subscription
final case class Topics(topics: Set[String]) extends Subscription

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def manual(topicPartitions: (String, Int)*): Manual

Create a manual subscription to a fixed set of topic-partitions

Create a manual subscription to a fixed set of topic-partitions

A consumer with this type of subscription does not perform consumer rebalancing

Value parameters:
topicPartitions

Tuples of topic and partition

def manual(topic: String, partition: Int): Manual

Create a subscription to a single topic-partition

Create a subscription to a single topic-partition

A consumer with this type of subscription does not perform consumer rebalancing

def pattern(pattern: Regex): Subscription

Create a subscription for all topics matching the given pattern

Create a subscription for all topics matching the given pattern

Value parameters:
pattern

Pattern

def pattern(pattern: String): Task[Subscription]

Create a subscription for all topics matching the given pattern

Create a subscription for all topics matching the given pattern

Value parameters:
pattern

Pattern to be converted to a Regex

Returns:

The created subscription or failure when the pattern is invalid

def pattern(pattern: Pattern): Subscription

Create a subscription for all topics matching the given pattern

Create a subscription for all topics matching the given pattern

Value parameters:
pattern

Pattern

def topics(name: String, names: String*): Subscription

Create a subscription for one or more topics

Create a subscription for one or more topics

Value parameters:
name

Topic to subscribe to

names

Additional topics to subscribe to