35 throw std::runtime_error(
"Maximal number of TCP Recovery requests per second must be greater than zero.");
110 return acquisitionTimeout_;
172 std::string username_;
173 std::string password_;
175 UInt32 acquisitionTimeout_;
191 toStr(str, settings);
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
#define ONIXS_CMEMDH_LTWT
#define ONIXS_CMEMDH_EXPORTED_CLASS_DECL(typeName)
#define ONIXS_CMEMDH_NAMESPACE_END
#define ONIXS_CMEMDH_EXPORTED
Encapsulates all the machinery related with market data processing from CME Market Data Platform.
Provides efficient way of accessing text-based values without copying content of the text being refer...
virtual ~TcpRecoveryService()
Finalizes instance and cleans everything up.
TcpRecoveryService(const NoDetails &)
Initializes without synchronization resource.
TcpRecoveryService(const TcpRecoverySettings &)
Initializes instance according to given settings.
virtual bool tryAcquire(const Handler &, StrRef &, StrRef &)
Gains access to the service.
virtual void brief(std::string &)
Basic information on the service.
virtual void release(const Handler &)
Releases previously acquired lock on the service.
TcpRecoverySettings & watch(WatchService &watch)
Watch service to be used by the service.
const std::string & username() const
Username to identify a requester while logging on to a TCP Recovery service.
UInt32 maxRequests() const
Returns the maximum number of requests per second.
TcpRecoverySettings & password(const std::string &password)
Assigns password to identify a requester while logging on to TCP Recovery service.
TcpRecoverySettings & username(const std::string &username)
Assigns username to identify a requester while logging on to a TCP Recovery service.
@ DefaultAcquisitionTimeout
UInt32 acquisitionTimeout() const
Returns the timeout (in milliseconds) on a TCP Recovery service acquisition.
TcpRecoverySettings(const std::string &username, const std::string &password)
TcpRecoverySettings & acquisitionTimeout(UInt32 acquisitionTimeout)
Sets the timeout (in milliseconds) on a TCP Recovery service acquisition.
WatchService & watch() const
Watch service to be used by the service.
TcpRecoverySettings & maxRequests(UInt32 maxRequests)
Sets the maximum number of requests per second.
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.
void toStr(std::string &, BookState::Enum)
Serializes book state value into a string.
Services as a marker for special construction.