From 1110808a9d39d4b808aef724c861a2e1a38d2a69 Mon Sep 17 00:00:00 2001
From: Devtools Arcadia <arcadia-devtools@yandex-team.ru>
Date: Mon, 7 Feb 2022 18:08:42 +0300
Subject: intermediate changes ref:cde9a383711a11544ce7e107a78147fb96cc4029

---
 library/cpp/messagebus/queue_config.h | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 library/cpp/messagebus/queue_config.h

(limited to 'library/cpp/messagebus/queue_config.h')

diff --git a/library/cpp/messagebus/queue_config.h b/library/cpp/messagebus/queue_config.h
new file mode 100644
index 0000000000..a9955f0c70
--- /dev/null
+++ b/library/cpp/messagebus/queue_config.h
@@ -0,0 +1,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;
+    };
+
+}
-- 
cgit v1.2.3