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 #include <optional>
12 
13 namespace iroha {
14  namespace network {
15 
17  struct RetryPolicy {
18  unsigned int max_attempts;
19  std::chrono::seconds initial_backoff;
20  std::chrono::seconds max_backoff;
22  std::vector<std::string> retryable_status_codes;
23  };
26  std::optional<RetryPolicy> retry_policy;
27  };
28 
29  } // namespace network
30 } // namespace iroha
31 
32 #endif // IROHA_GRPC_CHANNEL_BUILDER_PARAMS_HPP
std::vector< std::string > retryable_status_codes
Definition: grpc_channel_params.hpp:22
Definition: grpc_channel_params.hpp:17
std::chrono::seconds initial_backoff
Definition: grpc_channel_params.hpp:19
Definition: grpc_channel_params.hpp:16
float backoff_multiplier
Definition: grpc_channel_params.hpp:21
Definition: block_query.hpp:15
std::chrono::seconds max_backoff
Definition: grpc_channel_params.hpp:20
unsigned int max_response_message_bytes
Definition: grpc_channel_params.hpp:25
unsigned int max_request_message_bytes
Definition: grpc_channel_params.hpp:24
std::optional< RetryPolicy > retry_policy
Definition: grpc_channel_params.hpp:26
unsigned int max_attempts
Definition: grpc_channel_params.hpp:18