#include "k_times_reconnection_strategy.hpp"


Public Member Functions | |
| KTimesReconnectionStrategy (size_t number_of_reconnections) | |
| KTimesReconnectionStrategy (const KTimesReconnectionStrategy &)=delete | |
| KTimesReconnectionStrategy & | operator= (const KTimesReconnectionStrategy &)=delete |
| bool | canReconnect () override |
| void | reset () override |
Public Member Functions inherited from iroha::ametsuchi::ReconnectionStrategy | |
| virtual | ~ReconnectionStrategy ()=default |
Class provides a strategy for reconnection with the limited number of attempts
| KTimesReconnectionStrategy::KTimesReconnectionStrategy | ( | size_t | number_of_reconnections | ) |
| number_of_reconnections | - number of attempts for reconnection |
|
delete |
|
overridevirtual |
Checks the possibility of reconnection
Implements iroha::ametsuchi::ReconnectionStrategy.
|
delete |
|
overridevirtual |
Reset strategy to default value
Implements iroha::ametsuchi::ReconnectionStrategy.