1 #ifndef PROTON_RECONNECT_TIMER_HPP 2 #define PROTON_RECONNECT_TIMER_HPP 28 #include "./internal/export.hpp" 29 #include "./duration.hpp" 30 #include "./timestamp.hpp" 41 class reconnect_timer {
43 PN_CPP_EXTERN reconnect_timer(uint32_t first = 0, int32_t max = -1, uint32_t increment = 100,
44 bool doubling =
true, int32_t max_retries = -1, int32_t timeout = -1);
48 PN_CPP_EXTERN
void reset();
54 PN_CPP_EXTERN
int next_delay(timestamp now);
57 duration first_delay_;
65 timestamp timeout_deadline_;
72 #endif // PROTON_RECONNECT_TIMER_HPP Include the definitions of all proton types used to represent AMQP types.
Type traits for mapping between AMQP and C++ types.
Definition: annotation_key.hpp:28