userver: urabbitmq::ConsumerSettings Struct Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
urabbitmq::ConsumerSettings Struct Referencefinal

Consumer settings struct. More...

#include <userver/urabbitmq/consumer_settings.hpp>

+ Collaboration diagram for urabbitmq::ConsumerSettings:

Public Attributes

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

Detailed Description

Consumer settings struct.

Definition at line 15 of file consumer_settings.hpp.

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: