6 #ifndef IROHA_ON_DEMAND_OS_TRANSPORT_CLIENT_GRPC_HPP 7 #define IROHA_ON_DEMAND_OS_TRANSPORT_CLIENT_GRPC_HPP 15 #include "ordering.grpc.pb.h" 19 template <
typename Service>
33 iroha::protocol::Proposal>;
42 std::shared_ptr<proto::OnDemandOrdering::StubInterface> stub,
45 std::shared_ptr<TransportFactoryType> proposal_factory,
47 std::chrono::milliseconds proposal_request_timeout,
52 boost::optional<std::shared_ptr<const ProposalType>> onRequestProposal(
57 std::shared_ptr<proto::OnDemandOrdering::StubInterface> stub_;
58 std::shared_ptr<network::AsyncGrpcClient<google::protobuf::Empty>>
60 std::shared_ptr<TransportFactoryType> proposal_factory_;
61 std::function<TimepointType()> time_provider_;
62 std::chrono::milliseconds proposal_request_timeout_;
74 std::shared_ptr<TransportFactoryType> proposal_factory,
78 std::unique_ptr<ClientFactory> client_factory);
84 std::shared_ptr<network::AsyncGrpcClient<google::protobuf::Empty>>
86 std::shared_ptr<TransportFactoryType> proposal_factory_;
87 std::function<OnDemandOsClientGrpc::TimepointType()> time_provider_;
88 std::chrono::milliseconds proposal_request_timeout_;
90 std::unique_ptr<ClientFactory> client_factory_;
97 #endif // IROHA_ON_DEMAND_OS_TRANSPORT_CLIENT_GRPC_HPP
Definition: result_fwd.hpp:27
Definition: proposal.hpp:17
std::shared_ptr< Logger > LoggerPtr
Definition: logger_fwd.hpp:22
Definition: on_demand_os_transport.hpp:88
Definition: on_demand_os_client_grpc.hpp:28
Definition: block_query.hpp:15
std::chrono::system_clock::time_point TimepointType
Definition: on_demand_os_client_grpc.hpp:34
std::chrono::milliseconds TimeoutType
Definition: on_demand_os_client_grpc.hpp:35
Definition: on_demand_os_transport.hpp:35
proto::OnDemandOrdering Service
Definition: on_demand_os_client_grpc.hpp:67
Definition: on_demand_ordering_init.hpp:44
std::vector< TransactionBatchType > CollectionType
Definition: on_demand_os_transport.hpp:65
Definition: mst_transport_grpc.hpp:29
Definition: on_demand_ordering_init.hpp:33
Definition: on_demand_os_client_grpc.hpp:65