35 throw std::runtime_error(
"Maximal number of TCP Recovery requests per second must be greater than zero.");
106 return acquisitionTimeout_;
168 std::string username_;
169 std::string password_;
171 UInt32 acquisitionTimeout_;
187 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
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 &)
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)
const std::string & username() const
UInt32 maxRequests() const
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)
@ DefaultAcquisitionTimeout
UInt32 acquisitionTimeout() const
TcpRecoverySettings(const std::string &username, const std::string &password)
TcpRecoverySettings & acquisitionTimeout(UInt32 acquisitionTimeout)
WatchService & watch() const
TcpRecoverySettings & maxRequests(UInt32 maxRequests)
const std::string & password() const
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.