queue_config.h 536 B

12345678910111213141516171819
  1. #pragma once
  2. #include <library/cpp/getopt/last_getopt.h>
  3. namespace NBus {
  4. //////////////////////////////////////////////////////////////////
  5. /// \brief Configuration for message queue
  6. struct TBusQueueConfig {
  7. TString Name;
  8. int NumWorkers; ///< number of threads calling OnMessage(), OnReply() handlers
  9. TBusQueueConfig(); ///< initializes with default settings
  10. void ConfigureLastGetopt(NLastGetopt::TOpts&, const TString& prefix = "mb-");
  11. TString PrintToString() const;
  12. };
  13. }