hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
reconnection_strategy.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_RECONNECTION_STRATEGY_HPP
7 #define IROHA_RECONNECTION_STRATEGY_HPP
8 
9 #include <memory>
10 
11 namespace iroha {
12  namespace ametsuchi {
17  public:
22  virtual bool canReconnect() = 0;
23 
27  virtual void reset() = 0;
28 
29  virtual ~ReconnectionStrategy() = default;
30  };
31 
36  public:
37  virtual std::unique_ptr<ReconnectionStrategy> create() = 0;
38 
39  virtual ~ReconnectionStrategyFactory() = default;
40  };
41  } // namespace ametsuchi
42 } // namespace iroha
43 
44 #endif // IROHA_RECONNECTION_STRATEGY_HPP
Definition: reconnection_strategy.hpp:35
Definition: block_query.hpp:14
Definition: reconnection_strategy.hpp:16