AMPS C/C++ Client Class Reference
AMPS C/C++ Client Version 5.3.4.3
|
Base class for ReconnectDelayStrategy implementations. More...
#include <ReconnectDelayStrategyImpl.hpp>
Public Member Functions | |
virtual unsigned int | getConnectWaitDuration (const std::string &uri_)=0 |
Returns the time that the client should delay before connecting to the given server URI. More... | |
virtual void | reset (void)=0 |
Reset the state of this reconnect delay. More... | |
Base class for ReconnectDelayStrategy implementations.
|
pure virtual |
Returns the time that the client should delay before connecting to the given server URI.
uri_ | The URI which the client plans to connect. |
Any | exception thrown indicates no connection should be attempted; the client should in essence "give up." |
Implemented in AMPS::FixedDelayStrategy, and AMPS::ExponentialDelayStrategy.
|
pure virtual |
Reset the state of this reconnect delay.
AMPS calls this method when a connection is successfully established.
Implemented in AMPS::FixedDelayStrategy, and AMPS::ExponentialDelayStrategy.