42 typedef std::set<CpuIndex> CpuIndexes;
58 void copyTo(CpuIndexes&)
const;
61 bool insert(CpuIndex index);
64 bool erase(CpuIndex index);
73 std::string toString()
const;
89 UInt32 spinBeforeIdleTime_;
91 UInt32 socketBufferSize_;
111 return threadAffinity_;
123 return threadAffinity_;
137 threadCount_ = value;
151 return dataWaitTime_;
157 dataWaitTime_ = value;
170 return spinBeforeIdleTime_;
176 spinBeforeIdleTime_ = value;
184 return socketBufferSize_;
190 socketBufferSize_ = value;
194 std::string toString()
const;
255 class FeedEngineImpl;
275 friend class FeedEngineImpl;
277 FeedEngineImpl* impl_;
void dataWaitTime(UInt32 value)
Sets dataWaitTime.
UInt32 threadCount() const
UInt32 socketBufferSize() const
virtual void onFeedEngineThreadBegin(const FeedEngine &)
ThreadAffinity & threadAffinity()
Represents set of CPU indices.
const ThreadAffinity & threadAffinity() const
Identifies reasons feed engine threads becomes idle.
UInt32 dataWaitTime() const
void threadCount(UInt32 value)
Sets threadsCount.
int CpuIndex
Zero-based index of CPU.
virtual void onFeedEngineThreadEnd(const FeedEngine &)
ONIXS_TRADEWEB_APA_API std::ostream & operator<<(std::ostream &stream, const DataSource &ds)
void socketBufferSize(UInt32 value)
Sets udpSocketBufferSize.
#define ONIXS_TRADEWEB_APA_API_DECL(typeKind, typeName)
Collection of settings affecting Feed Engine behavior.
void spinBeforeIdleTime(UInt32 value)
Sets redundancySpinTime.
Manages processing machinery for market data received from feeds.
UInt32 spinBeforeIdleTime() const
virtual void onFeedEngineThreadIdle(const FeedEngine &, FeedEngineThreadIdle::Reason, UInt32 &)