Iroha - A simple, decentralized ledger http://iroha.tech
iroha::ametsuchi::ReconnectionStrategy Class Referenceabstract

#include "reconnection_strategy.hpp"

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

Public Member Functions

virtual bool canReconnect ()=0
virtual void reset ()=0
virtual ~ReconnectionStrategy ()=default

Detailed Description

Class provides an interface for reconnection condition.

Constructor & Destructor Documentation

virtual iroha::ametsuchi::ReconnectionStrategy::~ReconnectionStrategy ( )

Member Function Documentation

virtual bool iroha::ametsuchi::ReconnectionStrategy::canReconnect ( )
pure virtual

Checks the possibility of reconnection

true if the reconnection can be performed

Implemented in iroha::ametsuchi::KTimesReconnectionStrategy.

virtual void iroha::ametsuchi::ReconnectionStrategy::reset ( )
pure virtual

Reset strategy to default value

Implemented in iroha::ametsuchi::KTimesReconnectionStrategy.

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