50 : indices_(other.indices_)
104 UInt32 spinBeforeIdleTime_;
116 , spinBeforeIdleTime_(1)
138 return threadAffinity_;
150 return threadAffinity_;
167 threadCount_ = value;
203 return dataWaitTime_;
211 dataWaitTime_ = value;
225 return spinBeforeIdleTime_;
233 spinBeforeIdleTime_ = value;
242 return socketBufferSize_;
250 socketBufferSize_ = value;
269 toStr(str, settings);
362 MultithreadedFeedEngine
373 MultithreadedFeedEngine
376 MultithreadedFeedEngine* engine_;
UInt32 dataWaitTime() const
Defines amount of time Feed Engine spends on socket waiting for I/O while running master processing l...
ThreadAffinity()
Initializes empty set.
virtual void onFeedEngineThreadIssue(const FeedEngine &, const Char *)
Invoked if working thread experiences an issue while processing its tasks.
UInt32 threadCount() const
Number of working threads to be used by feed engine.
#define ONIXS_CMESTREAMLINEDMDH_EXPORTED_CLASS_DECL(typeName)
Thread waited for incoming data using corresponding I/O operations (like 'select') and exited waiting...
~ThreadAffinity()
Utilizes all the resources.
ThreadAffinity(const ThreadAffinity &other)
Initializes as copy of other set.
Manages processing machinery for market data received from feeds.
TinySet< CpuIndex > CpuIndices
Alias for collection of CPU indices.
virtual void onFeedEngineThreadBegin(const FeedEngine &)
Member invoked by feed engine when a new processing thread is spawned.
UInt32 spinBeforeIdleTime() const
Defines amount of time Feed Engine keeps cycling before going to sleep when no useful activity can be...
WatchService & watch() const
Watch service to be used by Feed Engine.
Represents set of CPU indices.
Collection of settings affecting Feed Engine behavior.
Listener for thread-related events.
Int32 CpuIndex
Zero-based index of CPU.
virtual void onFeedEngineThreadEnd(const FeedEngine &)
Member is invoked by feed engine when processing thread is about to end.
Identifies reasons feed engine threads becomes idle.
#define ONIXS_CMESTREAMLINEDMDH_NAMESPACE_END
#define ONIXS_CMESTREAMLINEDMDH_LTWT_CLASS
#define ONIXS_CMESTREAMLINEDMDH_EXPORTED
#define ONIXS_CMESTREAMLINEDMDH_INTERNAL_CLASS_DECL(typeName)
UInt32 socketBufferSize() const
Defines size of receiving buffer in bytes for sockets.
void threadCount(UInt32 value)
Sets threadsCount.
char Char
Character type alias.
#define ONIXS_CMESTREAMLINEDMDH_EXPORTED_CLASS
ThreadAffinity & threadAffinity()
Defines set of CPUs allowed for each working thread to be executed on while processing market data by...
CpuIndices & cpus()
Collection of CPU indices.
void socketBufferSize(UInt32 value)
Sets udpSocketBufferSize.
void dataWaitTime(UInt32 value)
Sets dataWaitTime.
const CpuIndices & cpus() const
Read-only access to index collection.
void spinBeforeIdleTime(UInt32 value)
Sets redundancySpinTime.
std::string toStr(const FeedEngineSettings &settings)
Serializes feed engine settings into a string.
#define ONIXS_CMESTREAMLINEDMDH_EXPORTED_STRUCT
#define ONIXS_CMESTREAMLINEDMDH_NULLPTR
FeedEngineSettings()
Initializes options with default values.
#define ONIXS_CMESTREAMLINEDMDH_LTWT_STRUCT
virtual void onFeedEngineThreadIdle(const FeedEngine &, FeedEngineThreadIdle::Reason, UInt32 &)
Is called when feed engine's thread is idle.
~FeedEngineSettings()
Cleans everything up.
void watch(WatchService &watch)
Watch service to be used by Feed Engine.
#define ONIXS_CMESTREAMLINEDMDH_NAMESPACE_BEGIN
const ThreadAffinity & threadAffinity() const
Defines set of CPUs allowed for each working thread to be executed on while processing market data by...