OnixS C++ CME MDP Premium Market Data Handler 5.11.1
Users' manual and API documentation
Loading...
Searching...
No Matches
FeedEngineThreadPoolListener Struct Reference

#include <OnixS/CME/MDH/FeedEngineThreadPool.h>

Public Member Functions

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

Detailed Description

Listener for thread-related events.

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

Note
Exceptions from onFeedEngineThreadBegin(), onFeedEngineThreadIdle(), and onFeedEngineThreadEnd() are caught and reported, when possible, through onFeedEngineThreadIssue(). The report identifies the failing callback and the exception. A begin or idle callback failure does not stop processing; an end callback failure does not interrupt shutdown. Exceptions from the issue callback or while reporting are suppressed.

Definition at line 48 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 54 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 59 of file FeedEngineThreadPool.h.

◆ onFeedEngineThreadIdle()

virtual bool onFeedEngineThreadIdle ( const FeedEngineThreadPool & )
inlinevirtual

Invoked when the thread is idle.

Returns
true to skip additional pool sleep, or false to permit the pool to sleep if the feed engine has not already waited for I/O.

Definition at line 65 of file FeedEngineThreadPool.h.

◆ onFeedEngineThreadIssue()

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

Invoked when a processing task or another listener callback throws an exception.

Definition at line 71 of file FeedEngineThreadPool.h.