OnixS C++ CME MDP Premium Market Data Handler  5.8.9
API Documentation
TcpRecoverySettings Class Reference

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

Public Types

enum  { DefaultAcquisitionTimeout = 500 }
 
enum  { DefaultMaxRequests = 15 }
 

Public Member Functions

 TcpRecoverySettings ()
 
 TcpRecoverySettings (const std::string &username, const std::string &password)
 
 ~TcpRecoverySettings ()
 
const std::string & username () const
 
TcpRecoverySettingsusername (const std::string &username)
 
const std::string & password () const
 
TcpRecoverySettingspassword (const std::string &password)
 
UInt32 acquisitionTimeout () const
 
TcpRecoverySettingsacquisitionTimeout (UInt32 acquisitionTimeout)
 
UInt32 maxRequests () const
 
TcpRecoverySettingsmaxRequests (UInt32 maxRequests)
 
WatchServicewatch () const
 
TcpRecoverySettingswatch (WatchService &watch)
 

Detailed Description

Definition at line 39 of file TcpRecovery.h.

Member Enumeration Documentation

anonymous enum

The default value of acquisitionTimeout().

Enumerator
DefaultAcquisitionTimeout 

Definition at line 45 of file TcpRecovery.h.

anonymous enum

The default value of maxRequests().

Enumerator
DefaultMaxRequests 

Definition at line 50 of file TcpRecovery.h.

Constructor & Destructor Documentation

TcpRecoverySettings ( )
inline

Definition at line 52 of file TcpRecovery.h.

TcpRecoverySettings ( const std::string &  username,
const std::string &  password 
)
inline

Definition at line 61 of file TcpRecovery.h.

~TcpRecoverySettings ( )
inline

Definition at line 70 of file TcpRecovery.h.

Member Function Documentation

UInt32 acquisitionTimeout ( ) const
inline

Returns the timeout (in milliseconds) on a TCP Recovery service acquisition.

The recovery request will be rejected if the TCP recovery service cannot be acquired within this period.

The default value is DefaultAcquisitionTimeout.

Definition at line 108 of file TcpRecovery.h.

TcpRecoverySettings& acquisitionTimeout ( UInt32  acquisitionTimeout)
inline

Sets the timeout (in milliseconds) on a TCP Recovery service acquisition.

The recovery request will be rejected if the TCP recovery service cannot be acquired within this period.

Definition at line 116 of file TcpRecovery.h.

UInt32 maxRequests ( ) const
inline

Returns the maximum number of requests per second.

When this limit is exceeded the recovery attempt is rejected.

The default value is DefaultMaxRequests.

Definition at line 128 of file TcpRecovery.h.

TcpRecoverySettings& maxRequests ( UInt32  maxRequests)
inline

Sets the maximum number of requests per second.

When this limit is exceeded the recovery attempt is rejected.

Definition at line 136 of file TcpRecovery.h.

const std::string& password ( ) const
inline

Password to identify a requester while logging on to TCP Recovery service.

Definition at line 90 of file TcpRecovery.h.

TcpRecoverySettings& password ( const std::string &  password)
inline

Assigns password to identify a requester while logging on to TCP Recovery service.

Definition at line 96 of file TcpRecovery.h.

const std::string& username ( ) const
inline

Username to identify a requester while logging on to a TCP Recovery service.

Definition at line 74 of file TcpRecovery.h.

TcpRecoverySettings& username ( const std::string &  username)
inline

Assigns username to identify a requester while logging on to a TCP Recovery service.

Definition at line 81 of file TcpRecovery.h.

WatchService& watch ( ) const
inline

Watch service to be used by the service.

Watch is used by the service while restricting number of incoming requests.

Note
By default, UTC watch service is used.

Definition at line 156 of file TcpRecovery.h.

TcpRecoverySettings& watch ( WatchService watch)
inline

Watch service to be used by the service.

If no instance associated, UTC watch is used.

Definition at line 164 of file TcpRecovery.h.


The documentation for this class was generated from the following file: