View Source RabbitMQStream.SuperConsumer (rabbitmq_stream v0.4.0-rc.3)
A Superconsumer spawns a Consumer process for each partition of the stream.
It accepts the same options as a Consumer, plus the following:
:super_stream
- the name of the super stream:partitions
- the number of partitions
All the consumers use the same provided connection, and are supervised by a DynamicSupervisor.
Summary
Types
@type super_consumer_option() :: {:super_stream, String.t()} | {:partitions, non_neg_integer()} | RabbitMQStream.Consumer.option()
@type t() :: %RabbitMQStream.SuperConsumer{ connection: GenServer.server(), consumer_module: module(), consumer_opts: [RabbitMQStream.Consumer.option()] | nil, dynamic_supervisor: module(), partitions: non_neg_integer(), registry: module(), super_stream: String.t() }