userver: urabbitmq::ConsumerSettings Struct Reference
Loading...
Searching...
No Matches
urabbitmq::ConsumerSettings Struct Referencefinal

#include <userver/urabbitmq/consumer_settings.hpp>

Detailed Description

Consumer settings struct.

Definition at line 15 of file consumer_settings.hpp.

+ Collaboration diagram for urabbitmq::ConsumerSettings:

Public Attributes

Queue queue
 A queue to consume from.
 
std::uint16_t prefetch_count
 

Member Data Documentation

◆ prefetch_count

std::uint16_t urabbitmq::ConsumerSettings::prefetch_count

Limit for unacked messages, degree of parallelism if you will. Tasks are dispatched asynchronously, so be a bit careful with this value: up to this value of tasks might be executed concurrently, which could be overwhelming

Settings this value to 1 basically makes a consumer synchronous, which could be of use for some workloads

Definition at line 26 of file consumer_settings.hpp.

◆ queue

Queue urabbitmq::ConsumerSettings::queue

A queue to consume from.

Definition at line 17 of file consumer_settings.hpp.


The documentation for this struct was generated from the following file: