View Source ExRocketmq.Producer.MqSelector.Random (lib_oss v0.1.0)

Implements random MessageQueue selection for the ExRocketmq Producer.

This module provides a random selection strategy by randomly choosing a MessageQueue from the given list on each select/3 call.

To use this random selector, pass the ExRocketmq.Producer.MqSelector.Random module as the :selector option when constructing a Producer:

producer = ExRocketmq.Producer.start_link(

selector: ExRocketmq.Producer.MqSelector.Random.new([])

)

Summary

Types

@type t() :: %ExRocketmq.Producer.MqSelector.Random{}

Functions