OnixS C++ CME MDP Conflated UDP Handler 1.1.2
API documentation
Loading...
Searching...
No Matches
FeedEngineThreads.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
25
27
28// A bit of forward declarations.
29
31(
32 FeedEngineThreads
33);
34
42{
49 virtual
50 void
52 (
54 )
55 {
56 }
57
63 virtual
64 void
66 (
68 )
69 {
70 }
71
82 virtual
83 bool
85 (
87 )
88 {
89 return false;
90 }
91
95 virtual
96 void
98 (
99 const FeedEngineThreads&,
100 const Char*
101 )
102 {
103 }
104};
105
106//
107
112{
113 ThreadPoolSettings pool_;
114 UInt32 loopBeforeIdle_;
115
116public:
120 : loopBeforeIdle_(1)
121 {
122 }
123
127 {
128 return pool_;
129 }
130
132 const
134 pool() const
135 {
136 return pool_;
137 }
138
140 UInt32
142 {
143 return loopBeforeIdle_;
144 }
145
147 void
149 {
150 loopBeforeIdle_ = value;
151 }
152};
153
156ONIXS_CONFLATEDUDP_EXPORTED
157void
159 std::string&,
160 const
162
165inline
166std::string
168 const
169 FeedEngineThreadSettings& settings)
170{
171 std::string str;
172
173 toStr(str, settings);
174
175 return str;
176}
177
178//
179
181(
182 NetFeedEngine
183);
184
189{
190 // The workhorse for the class.
191 class Workhorse;
192
193 Workhorse* workhorse_;
194
195public:
202
206};
207
#define ONIXS_CONFLATEDUDP_EXPORTED_CLASS
Definition Bootstrap.h:55
#define ONIXS_CONFLATEDUDP_LTWT_CLASS
Definition Bootstrap.h:95
#define ONIXS_CONFLATEDUDP_EXPORTED_CLASS_DECL(typeName)
Definition Bootstrap.h:47
#define ONIXS_CONFLATEDUDP_EXPORTED_STRUCT
Definition Bootstrap.h:59
#define ONIXS_CONFLATEDUDP_NAMESPACE_END
Definition Bootstrap.h:157
#define ONIXS_CONFLATEDUDP_NAMESPACE_BEGIN
Definition Bootstrap.h:153
const ThreadPoolSettings & pool() const
Settings related to the thread pool.
ThreadPoolSettings & pool()
Settings related to the thread pool.
void loopBeforeIdle(UInt32 value)
Defines the number of working threads in the pool.
UInt32 loopBeforeIdle() const
Number of working threads in the pool.
FeedEngineThreads(NetFeedEngine &, const FeedEngineThreadSettings &, FeedEngineThreadListener *=NULL)
ONIXS_CONFLATEDUDP_EXPORTED void toStr(std::string &, BookState::Enum)
Serializes book state value into a string.
char Char
Character type alias.
Definition String.h:36
UInt32 UInt32
uInt32.
Definition Fields.h:261
virtual void onFeedEngineThreadEnd(const FeedEngineThreads &)
virtual bool onFeedEngineThreadIdle(const FeedEngineThreads &)
virtual void onFeedEngineThreadBegin(const FeedEngineThreads &)
virtual void onFeedEngineThreadIssue(const FeedEngineThreads &, const Char *)