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

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

Public Member Functions

 TcpRecoverySessionSettings (const SettingGroup *group=nullptr)
 TcpRecoverySessionSettings (const TcpRecoverySessionSettings &other)
 ~TcpRecoverySessionSettings ()
TcpRecoveryService * service () const
TcpRecoverySessionSettings & service (TcpRecoveryService *service)
Messaging::UInt32 attempts () const
TcpRecoverySessionSettings & attempts (Messaging::UInt32 qty)
Messaging::UInt32 servingTimeLimit () const
TcpRecoverySessionSettings & servingTimeLimit (Messaging::UInt32 servingTimeLimit)
TcpRecoverySessionSettings & operator= (const TcpRecoverySessionSettings &other)

Friends

class SessionSettings

Detailed Description

Definition at line 200 of file SessionSettings.h.

Constructor & Destructor Documentation

◆ TcpRecoverySessionSettings() [1/2]

TcpRecoverySessionSettings ( const SettingGroup * group = nullptr)
inline

Initializes the instance with the default values.

Optional group parameter lets to make the instance belonging to a given group of settings.

Definition at line 207 of file SessionSettings.h.

◆ TcpRecoverySessionSettings() [2/2]

TcpRecoverySessionSettings ( const TcpRecoverySessionSettings & other)
inline

Initializes the instance as a copy of the other one. Grouping and value assignment control services are not copied.

Definition at line 219 of file SessionSettings.h.

◆ ~TcpRecoverySessionSettings()

Finalizes the instance.

Definition at line 228 of file SessionSettings.h.

Member Function Documentation

◆ attempts() [1/2]

Messaging::UInt32 attempts ( ) const
inline

Number of times a Handler must try to recover missing data using the TCP recovery before it switches to recover market state from snapshots or resumes incremental data processing by natural refresh.

Definition at line 258 of file SessionSettings.h.

◆ attempts() [2/2]

Updates number of times a Handler must try to recover missing data using the TCP recovery before it switches to recover market state from snapshots or resumes incremental data processing by natural refresh.

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

Definition at line 270 of file SessionSettings.h.

◆ operator=()

TcpRecoverySessionSettings & operator= ( const TcpRecoverySessionSettings & other)
inline

Re-initializes as a copy of the other one. Grouping and value assignment control services aren't copied.

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

Definition at line 309 of file SessionSettings.h.

◆ service() [1/2]

TcpRecoveryService * service ( ) const
inline

An instance of the TCP recovery service if there's any associated.

Null instance indicates no service is associated and thus TCP recovery is disabled during market data processing session.

Definition at line 236 of file SessionSettings.h.

◆ service() [2/2]

TcpRecoverySessionSettings & service ( TcpRecoveryService * service)
inline

Associates the instance of the TCP Recovery service to be used by a Handler during market data processing session.

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

Definition at line 246 of file SessionSettings.h.

◆ servingTimeLimit() [1/2]

Messaging::UInt32 servingTimeLimit ( ) const
inline

Amount of time allocated to process a recovery request. TCP recovery service interrupts request processing if it can't be accomplished within given time frame.

Interval is measured in seconds.

Note
Default value is '10'.

Definition at line 285 of file SessionSettings.h.

◆ servingTimeLimit() [2/2]

TcpRecoverySessionSettings & servingTimeLimit ( Messaging::UInt32 servingTimeLimit)
inline

Amount of time allocated to process a recovery request. TCP recovery service interrupts request processing if it can't be accomplished within given time frame.

Interval is measured in seconds.

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

Definition at line 298 of file SessionSettings.h.

◆ SessionSettings

friend class SessionSettings
friend

Lets grouping and value assignment control functioning.

Definition at line 320 of file SessionSettings.h.