reconnect_timer Class Reference

**Experimental** - A class that generates a series of delays to coordinate reconnection attempts. More...

#include <reconnect_timer.hpp>

List of all members.

Public Member Functions

 reconnect_timer (uint32_t first=0, int32_t max=-1, uint32_t increment=100, bool doubling=true, int32_t max_retries=-1, int32_t timeout=-1)
void reset ()
 Indicate a successful connection, resetting the internal timer values.
int next_delay (timestamp now)
 Obtain the timer's computed time to delay before attempting a reconnection attempt (in milliseconds).

Detailed Description

**Experimental** - A class that generates a series of delays to coordinate reconnection attempts.

They may be open ended or limited in time. They may be evenly spaced or doubling at an exponential rate.


Member Function Documentation

int next_delay ( timestamp  now  ) 

Obtain the timer's computed time to delay before attempting a reconnection attempt (in milliseconds).

-1 means that the retry limit or timeout has been exceeded and reconnection attempts should cease.

void reset (  ) 

Indicate a successful connection, resetting the internal timer values.


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

Generated on 27 Jan 2017 for Qpid Proton C++ by  doxygen 1.6.1