35 throw std::runtime_error(
"Maximal number of TCP Recovery requests per second must be greater than zero.");
45 enum { DefaultAcquisitionTimeout = 500 };
50 enum { DefaultMaxRequests = 15 };
55 , acquisitionTimeout_(DefaultAcquisitionTimeout)
56 , maxRequests_(DefaultMaxRequests)
64 , acquisitionTimeout_(DefaultAcquisitionTimeout)
65 , maxRequests_(DefaultMaxRequests)
110 return acquisitionTimeout_;
118 acquisitionTimeout_ = acquisitionTimeout;
140 maxRequests_ = maxRequests;
172 std::string username_;
173 std::string password_;
175 UInt32 acquisitionTimeout_;
191 toStr(str, settings);
210 virtual void brief(std::string&);
219 virtual void release(
const Handler&);
Encapsulates all the machinery related with market data processing from CME Market Data Platform...
UInt32 acquisitionTimeout() const
Returns the timeout (in milliseconds) on a TCP Recovery service acquisition.
void brief(std::string &, const ConsolidatedBook &)
Book brief info.
const std::string & username() const
Username to identify a requester while logging on to a TCP Recovery service.
std::string toStr(const TcpRecoverySettings &settings)
Serializes TCP recovery settings.
WatchService & watch() const
Watch service to be used by the service.
#define ONIXS_CMEMDH_EXPORTED_CLASS_DECL(typeName)
#define ONIXS_CMEMDH_LTWT
UInt32 maxRequests() const
Returns the maximum number of requests per second.
TcpRecoverySettings & watch(WatchService &watch)
Watch service to be used by the service.
TcpRecoverySettings & password(const std::string &password)
Assigns password to identify a requester while logging on to TCP Recovery service.
TcpRecoverySettings(const std::string &username, const std::string &password)
TcpRecoverySettings & maxRequests(UInt32 maxRequests)
Sets the maximum number of requests per second.
Provides efficient way of accessing text-based values without copying content of the text being refer...
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
#define ONIXS_CMEMDH_EXPORTED
const std::string & password() const
Password to identify a requester while logging on to TCP Recovery service.
void throwZeroTcpRecoveryRequestLimit()
Throws error on zero TCP recovery request limit value.
TcpRecoverySettings & acquisitionTimeout(UInt32 acquisitionTimeout)
Sets the timeout (in milliseconds) on a TCP Recovery service acquisition.
Services as a marker for special construction.
TcpRecoverySettings & username(const std::string &username)
Assigns username to identify a requester while logging on to a TCP Recovery service.
#define ONIXS_CMEMDH_NAMESPACE_END