aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/queue_config.h
blob: 61a939588686669e12bad9536b55af77820cf8cb (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; 
    }; 

}