hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
grpc_channel_params.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_GRPC_CHANNEL_BUILDER_PARAMS_HPP
7 #define IROHA_GRPC_CHANNEL_BUILDER_PARAMS_HPP
8 
9 #include <chrono>
10 #include <limits>
11 
12 #include <boost/optional/optional.hpp>
13 
14 namespace iroha {
15  namespace network {
16 
18  struct RetryPolicy {
19  unsigned int max_attempts;
20  std::chrono::seconds initial_backoff;
21  std::chrono::seconds max_backoff;
23  std::vector<std::string> retryable_status_codes;
24  };
27  boost::optional<RetryPolicy> retry_policy;
28  };
29 
30  } // namespace network
31 } // namespace iroha
32 
33 #endif // IROHA_GRPC_CHANNEL_BUILDER_PARAMS_HPP
std::vector< std::string > retryable_status_codes
Definition: grpc_channel_params.hpp:23
Definition: grpc_channel_params.hpp:18
std::chrono::seconds initial_backoff
Definition: grpc_channel_params.hpp:20
Definition: grpc_channel_params.hpp:17
float backoff_multiplier
Definition: grpc_channel_params.hpp:22
Definition: block_query.hpp:14
std::chrono::seconds max_backoff
Definition: grpc_channel_params.hpp:21
unsigned int max_response_message_bytes
Definition: grpc_channel_params.hpp:26
boost::optional< RetryPolicy > retry_policy
Definition: grpc_channel_params.hpp:27
unsigned int max_request_message_bytes
Definition: grpc_channel_params.hpp:25
unsigned int max_attempts
Definition: grpc_channel_params.hpp:19