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

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

Public Member Functions

 TcpRecoveryFeedSettings (const SettingGroup *group=nullptr)
 TcpRecoveryFeedSettings (const TcpRecoveryFeedSettings &other)
 ~TcpRecoveryFeedSettings ()
Messaging::UInt32 connectionAttempts () const
TcpRecoveryFeedSettings & connectionAttempts (Messaging::UInt32 attemptQty)
Messaging::UInt32 connectionTimeout () const
TcpRecoveryFeedSettings & connectionTimeout (Messaging::UInt32 connectionTimeout)
Messaging::UInt32 sendTimeout () const
TcpRecoveryFeedSettings & sendTimeout (Messaging::UInt32 sendTimeout)
TcpRecoveryFeedSettings & operator= (const TcpRecoveryFeedSettings &other)
Public Member Functions inherited from FeedSettingsBase< RecoveryFeedLayout::Enum >
RecoveryFeedLayout::Enum layout () const
FeedSettingsBase & layout (RecoveryFeedLayout::Enum value)
Messaging::UInt32 heartbeatInterval () const
FeedSettingsBase & heartbeatInterval (Messaging::UInt32 interval)
FeedConnectionSettings & A ()
const FeedConnectionSettings & A () const
FeedConnectionSettings & B ()
const FeedConnectionSettings & B () const

Friends

class FeedSettings

Additional Inherited Members

Protected Member Functions inherited from FeedSettingsBase< RecoveryFeedLayout::Enum >
 FeedSettingsBase (const SettingGroup *group, RecoveryFeedLayout::Enum layout, Messaging::UInt32 heartbeat)
 FeedSettingsBase (const FeedSettingsBase &other)
 ~FeedSettingsBase ()
const SettingGroup & group () const
void assignNoControl (const FeedSettingsBase &other)

Detailed Description

Definition at line 544 of file FeedSettings.h.

Constructor & Destructor Documentation

◆ TcpRecoveryFeedSettings() [1/2]

TcpRecoveryFeedSettings ( const SettingGroup * group = nullptr)
inline

Initializes instance with default values.

By default, feed A is used as the primary source of market recovery data with fail-over to the feed B. Heartbeats are expected within 2 seconds periodicity.

Definition at line 552 of file FeedSettings.h.

◆ TcpRecoveryFeedSettings() [2/2]

TcpRecoveryFeedSettings ( const TcpRecoveryFeedSettings & other)
inline

Initializes the instance as a copy of the other one.

Definition at line 562 of file FeedSettings.h.

◆ ~TcpRecoveryFeedSettings()

Finalizes the instance.

Definition at line 571 of file FeedSettings.h.

Member Function Documentation

◆ connectionAttempts() [1/2]

Messaging::UInt32 connectionAttempts ( ) const
inline

Number of times the Handler must try recovering from the other feed if it fails to recover from the primary one.

Note
Default value is '3'.

Definition at line 578 of file FeedSettings.h.

◆ connectionAttempts() [2/2]

TcpRecoveryFeedSettings & connectionAttempts ( Messaging::UInt32 attemptQty)
inline

Number of times the Handler must try recovering from the other feed if it fails to recover from the primary one.

Exceptions
std::runtime_errorIf the setting belongs to a handler that is processing market data or being configured from another source.

Definition at line 588 of file FeedSettings.h.

◆ connectionTimeout() [1/2]

Messaging::UInt32 connectionTimeout ( ) const
inline

Interval between the attempts to receive missed packets via the TCP recovery feed if previous attempt either failed or was rejected.

Interval is measured in milliseconds.

Note
Default value is '500'.

Definition at line 602 of file FeedSettings.h.

◆ connectionTimeout() [2/2]

TcpRecoveryFeedSettings & connectionTimeout ( Messaging::UInt32 connectionTimeout)
inline

Interval between the attempts to receive missed packets via the TCP recovery feed if previous attempt either failed or was rejected.

Interval is measured in milliseconds.

Exceptions
std::runtime_errorIf the setting belongs to a handler that is processing market data or being configured from another source.

Definition at line 614 of file FeedSettings.h.

◆ operator=()

TcpRecoveryFeedSettings & operator= ( const TcpRecoveryFeedSettings & other)
inline

Re-initializes the instance as a copy of the other one.

Exceptions
std::runtime_errorIf the setting belongs to a handler that is processing market data or being configured from another source.

Definition at line 647 of file FeedSettings.h.

◆ sendTimeout() [1/2]

Messaging::UInt32 sendTimeout ( ) const
inline

Time limit for the send operation.

Value is measured in milliseconds.

Note
Default value is 5000.

Definition at line 626 of file FeedSettings.h.

◆ sendTimeout() [2/2]

TcpRecoveryFeedSettings & sendTimeout ( Messaging::UInt32 sendTimeout)
inline

Time limit for the send operation.

Value is measured in milliseconds.

Exceptions
std::runtime_errorIf the setting belongs to a handler that is processing market data or being configured from another source.

Definition at line 636 of file FeedSettings.h.

◆ FeedSettings

friend class FeedSettings
friend

Definition at line 656 of file FeedSettings.h.