OnixS C++ CME MDP Conflated UDP Handler 1.1.2
API documentation
Loading...
Searching...
No Matches
FeedEngineThreadListener Struct Reference

Public Member Functions

virtual void onFeedEngineThreadBegin (const FeedEngineThreads &)
virtual void onFeedEngineThreadEnd (const FeedEngineThreads &)
virtual bool onFeedEngineThreadIdle (const FeedEngineThreads &)
virtual void onFeedEngineThreadIssue (const FeedEngineThreads &, const 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.

Definition at line 40 of file FeedEngineThreads.h.

Member Function Documentation

◆ onFeedEngineThreadBegin()

virtual void onFeedEngineThreadBegin ( const FeedEngineThreads & )
inlinevirtual

Invoked by a feed engine when a new processing thread is spawned.

Note
Invocation is performed by the newly started thread thus making possible application of any thread-specific turn-up.

Definition at line 51 of file FeedEngineThreads.h.

◆ onFeedEngineThreadEnd()

virtual void onFeedEngineThreadEnd ( const FeedEngineThreads & )
inlinevirtual

Invoked by a feed engine when a processing thread is about to end.

Note
Invocation is performed by the thread thus making possible thread-specific cleanup.

Definition at line 65 of file FeedEngineThreads.h.

◆ onFeedEngineThreadIdle()

virtual bool onFeedEngineThreadIdle ( const FeedEngineThreads & )
inlinevirtual

Invoked when a thread reaches the idle state.

Invocation of the given member depends on the returned value of a particular implementation of the NetFeedEngine::process member.

The returned value indicates whether the given event was handled. The FeedEngineThreads makes a decision whether the processing is to be suspended depending on the returned value.

Definition at line 84 of file FeedEngineThreads.h.

◆ onFeedEngineThreadIssue()

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

Invoked if working thread experiences an issue while processing its tasks. Once invoked, working thread continues performing its tasks.

Definition at line 97 of file FeedEngineThreads.h.