KafkaEx.New.NodeSelector (kafka_ex v0.12.1) View Source

Defines node selector functions and macros

Link to this section Summary

Functions

Select the controller for the given consumer group

Select the cluster's controller node

Select first available node

Select a specific node

Select a random node

Select the controller for the given topic and partition

Link to this section Types

Specs

t() :: %KafkaEx.New.NodeSelector{
  consumer_group_name: term(),
  node_id: term(),
  partition: term(),
  strategy: term(),
  topic: term()
}

Link to this section Functions

Link to this function

consumer_group(consumer_group_name)

View Source

Specs

Select the controller for the given consumer group

Specs

controller() :: t()

Select the cluster's controller node

Specs

first_available() :: t()

Select first available node

Specs

Select a specific node

Specs

random() :: t()

Select a random node

Link to this function

topic_partition(topic, partition)

View Source

Specs

Select the controller for the given topic and partition