hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::ametsuchi::KTimesReconnectionStrategy Class Reference

#include "k_times_reconnection_strategy.hpp"

Inheritance diagram for iroha::ametsuchi::KTimesReconnectionStrategy:
Inheritance graph
Collaboration diagram for iroha::ametsuchi::KTimesReconnectionStrategy:
Collaboration graph

Public Member Functions

 KTimesReconnectionStrategy (size_t number_of_reconnections)
 
 KTimesReconnectionStrategy (const KTimesReconnectionStrategy &)=delete
 
KTimesReconnectionStrategyoperator= (const KTimesReconnectionStrategy &)=delete
 
bool canReconnect () override
 
void reset () override
 
- Public Member Functions inherited from iroha::ametsuchi::ReconnectionStrategy
virtual ~ReconnectionStrategy ()=default
 

Detailed Description

Class provides a strategy for reconnection with the limited number of attempts

Constructor & Destructor Documentation

KTimesReconnectionStrategy::KTimesReconnectionStrategy ( size_t  number_of_reconnections)
Parameters
number_of_reconnections- number of attempts for reconnection
iroha::ametsuchi::KTimesReconnectionStrategy::KTimesReconnectionStrategy ( const KTimesReconnectionStrategy )
delete

Member Function Documentation

bool KTimesReconnectionStrategy::canReconnect ( )
overridevirtual

Checks the possibility of reconnection

Returns
true if the reconnection can be performed

Implements iroha::ametsuchi::ReconnectionStrategy.

KTimesReconnectionStrategy& iroha::ametsuchi::KTimesReconnectionStrategy::operator= ( const KTimesReconnectionStrategy )
delete
void KTimesReconnectionStrategy::reset ( )
overridevirtual

Reset strategy to default value

Implements iroha::ametsuchi::ReconnectionStrategy.


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