OnixS C++ CME MDP Streamlined Market Data Handler 1.2.0
API Documentation
Loading...
Searching...
No Matches
HandlerSettings.h
Go to the documentation of this file.
1// Copyright Onix Solutions Limited [OnixS]. All rights reserved.
2//
3// This software owned by Onix Solutions Limited [OnixS] and is
4// protected by copyright law and international copyright treaties.
5//
6// Access to and use of the software is governed by the terms of the applicable
7// OnixS Software Services Agreement (the Agreement) and Customer end user license
8// agreements granting a non-assignable, non-transferable and non-exclusive license
9// to use the software for it's own data processing purposes under the terms defined
10// in the Agreement.
11//
12// Except as otherwise granted within the terms of the Agreement, copying or
13// reproduction of any part of this source code or associated reference material
14// to any other location for further reproduction or redistribution, and any
15// amendments to this copyright notice, are expressly prohibited.
16//
17// Any reproduction or redistribution for sale or hiring of the Software not in
18// accordance with the terms of the Agreement is a violation of copyright law.
19//
20
21#pragma once
22
23#include <string>
24
26
28
30
32
34
37{
38 ChannelId channel_;
39
40 FeedSettings feeds_;
41
42 UInt32 recoveryQueueMaxSize_;
43
44 UInt32 maxTcpRecoveryDepth_;
45
46 HandlerDebugLoggingSettings debugLogging_;
47
48 MemoryPoolSettings memoryPool_;
49
50public:
53 : channel_(0)
54 , recoveryQueueMaxSize_(1000000)
55 , maxTcpRecoveryDepth_(1000)
56 {
57 }
58
61 {
62 }
63
66 {
67 return channel_;
68 }
69
71 void channel(ChannelId value)
72 {
73 channel_ = value;
74 }
75
77 const
79 feeds() const
80 {
81 return feeds_;
82 }
83
87 {
88 return feeds_;
89 }
90
102 UInt32
104 {
105 return recoveryQueueMaxSize_;
106 }
107
110 void
112 UInt32 queueMaxSize)
113 {
114 recoveryQueueMaxSize_ = queueMaxSize;
115 }
116
120 {
121 return debugLogging_;
122 }
123
125 const
128 {
129 return debugLogging_;
130 }
131
136 {
137 return memoryPool_;
138 }
139
142 const
145 {
146 return memoryPool_;
147 }
148
152 void
155 {
156 maxTcpRecoveryDepth_ =
158 }
159
160 UInt32
162 {
163 return maxTcpRecoveryDepth_;
164 }
165
166};
167
170void
172 std::string&,
173 const HandlerSettings&);
174
176inline
177std::string
179 const HandlerSettings& settings)
180{
181 std::string str;
182
183 toStr(str, settings);
184
185 return str;
186}
187
190std::string
192
#define ONIXS_CMESTREAMLINEDMDH_NAMESPACE_BEGIN
Definition Bootstrap.h:169
#define ONIXS_CMESTREAMLINEDMDH_NAMESPACE_END
Definition Bootstrap.h:173
#define ONIXS_CMESTREAMLINEDMDH_LTWT_CLASS
Definition Bootstrap.h:111
#define ONIXS_CMESTREAMLINEDMDH_EXPORTED
Definition Compiler.h:160
Parameters affecting what's logged at a debug level.
Handler's configuration settings.
HandlerDebugLoggingSettings & debugLogging()
Parameters affecting logging at debug level.
const FeedSettings & feeds() const
Reference to parameters related with feeds.
void channel(ChannelId value)
Identifies CME market data channel.
const HandlerDebugLoggingSettings & debugLogging() const
Parameters affecting logging at debug level.
void maxTcpRecoveryDepth(UInt32 maxTcpRecoveryDepth)
Cme recovery server keeps only the current day's messages This param allows to request only the lates...
FeedSettings & feeds()
Reference to parameters related with feeds.
MemoryPoolSettings & memoryPool()
Parameters affecting behavior of memory pool used by Handler while processing market data.
HandlerSettings()
Initializes parameters with default values.
void recoveryQueueMaxSize(UInt32 queueMaxSize)
Maximum number of packets to be hold in the internal queue used by the Handler while processing incom...
UInt32 recoveryQueueMaxSize() const
Maximum number of packets transmitted via incremental feed to be hold in internal queue while market ...
const MemoryPoolSettings & memoryPool() const
Parameters affecting behavior of memory pool used by Handler while processing market data.
ChannelId channel() const
Identifies CME market data channel.
std::string makeInstrumentCacheFilename(ChannelId)
Makes filename for instrument cache for the given channel.
UInt32 ChannelId
Identifies CME channel.
Definition Domain.h:28
void toStr(std::string &str, const Decimal &number)
Definition Decimal.h:502