YAMI4 C++
options.h
1 // Copyright Maciej Sobczak 2008-2019.
2 // This file is part of YAMI4.
3 //
4 // YAMI4 is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // YAMI4 is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with YAMI4. If not, see <http://www.gnu.org/licenses/>.
16 
17 #ifndef YAMICPP_OPTIONS_H_INCLUDED
18 #define YAMICPP_OPTIONS_H_INCLUDED
19 
20 #include <cstddef>
21 
22 namespace yami
23 {
24 
25 class parameters;
26 
27 namespace details
28 {
29 
30 struct cpp_options
31 {
32  void init(const parameters & params);
33 
34  std::size_t dispatcher_threads;
35  std::size_t connection_retries;
36  std::size_t connection_retry_delay_spread;
37  std::size_t outgoing_high_water_mark;
38  std::size_t outgoing_low_water_mark;
39  std::size_t incoming_high_water_mark;
40  std::size_t incoming_low_water_mark;
41 
42  bool deliver_as_raw_binary;
43 
44  std::size_t default_failover_timeout;
45 };
46 
47 } // namespace details
48 
49 } // namespace yami
50 
51 #endif // YAMICPP_OPTIONS_H_INCLUDED
Namespace devoted to everything related to YAMI4.
Definition: activity_statistics_monitor.cpp:27