AMPS C/C++ Client Class Reference
AMPS C/C++ Client Version 5.3.4.3
AMPS::ReconnectDelayStrategyImpl Class Referenceabstract

Base class for ReconnectDelayStrategy implementations. More...

#include <ReconnectDelayStrategyImpl.hpp>

+ Inheritance diagram for AMPS::ReconnectDelayStrategyImpl:

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...
 

Detailed Description

Base class for ReconnectDelayStrategy implementations.

Member Function Documentation

virtual unsigned int AMPS::ReconnectDelayStrategyImpl::getConnectWaitDuration ( const std::string &  uri_)
pure virtual

Returns the time that the client should delay before connecting to the given server URI.

Parameters
uri_The URI which the client plans to connect.
Returns
The time, in milliseconds, which the client should delay before connecting to uri_.
Exceptions
Anyexception thrown indicates no connection should be attempted; the client should in essence "give up."

Implemented in AMPS::FixedDelayStrategy, and AMPS::ExponentialDelayStrategy.

virtual void AMPS::ReconnectDelayStrategyImpl::reset ( void  )
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.


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