OnixS C++ CME MDP Premium Market Data Handler 5.9.0
API Documentation
Loading...
Searching...
No Matches
FeedEngineThreadPoolListener Struct Reference

Public Member Functions

virtual void onFeedEngineThreadBegin (const FeedEngineThreadPool &)
virtual void onFeedEngineThreadEnd (const FeedEngineThreadPool &)
virtual bool onFeedEngineThreadIdle (const FeedEngineThreadPool &)
virtual void onFeedEngineThreadIssue (const FeedEngineThreadPool &, const Char *)

Detailed Description

Members of this classes are invoked to reflect various life-time events of threads spawned and used by feed engines while processing market data.

Definition at line 38 of file FeedEngineThreadPool.h.

Member Function Documentation

◆ onFeedEngineThreadBegin()

virtual void onFeedEngineThreadBegin ( const FeedEngineThreadPool & )
inlinevirtual

Invoked by the thread before entering the processing loop.

Note
This callback allows the subscriber to perform thread-specific tuning (e.g., setting thread affinity or priority).

Definition at line 43 of file FeedEngineThreadPool.h.

◆ onFeedEngineThreadEnd()

virtual void onFeedEngineThreadEnd ( const FeedEngineThreadPool & )
inlinevirtual

Invoked by the thread when it is about to end.

Note
This callback allows the subscriber to perform thread-specific cleanup.

Definition at line 48 of file FeedEngineThreadPool.h.

◆ onFeedEngineThreadIdle()

virtual bool onFeedEngineThreadIdle ( const FeedEngineThreadPool & )
inlinevirtual

Invoked when the thread is idle.

Returns
true if the thread should sleep for some time to reduce the CPU load, and false - to resume processing without delay.

Definition at line 53 of file FeedEngineThreadPool.h.

◆ onFeedEngineThreadIssue()

virtual void onFeedEngineThreadIssue ( const FeedEngineThreadPool & ,
const Char *  )
inlinevirtual

Invoked when the thread experiences an issue while processing its tasks.

Once invoked, the thread continues performing its tasks.

Definition at line 60 of file FeedEngineThreadPool.h.