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
Link to this section Functions
Specs
consumer_group(KafkaEx.New.KafkaExAPI.consumer_group_name()) :: t()
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
node_id(KafkaEx.New.KafkaExAPI.node_id()) :: t()
Select a specific node
Specs
random() :: t()
Select a random node
Specs
topic_partition( KafkaEx.New.KafkaExAPI.topic_name(), KafkaEx.New.KafkaExAPI.partition_id() ) :: t()
Select the controller for the given topic and partition