aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/queue_config.h
blob: a9955f0c70aa77262794ef96d7dc7994b2531556 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <library/cpp/getopt/last_getopt.h>

namespace NBus {
    //////////////////////////////////////////////////////////////////
    /// \brief Configuration for message queue
    struct TBusQueueConfig {
        TString Name;
        int NumWorkers; ///< number of threads calling OnMessage(), OnReply() handlers

        TBusQueueConfig(); ///< initializes with default settings

        void ConfigureLastGetopt(NLastGetopt::TOpts&, const TString& prefix = "mb-");

        TString PrintToString() const;
    };

}