6 #ifndef IROHA_ON_DEMAND_OS_TRANSPORT_CLIENT_GRPC_HPP 7 #define IROHA_ON_DEMAND_OS_TRANSPORT_CLIENT_GRPC_HPP 14 #include "ordering.grpc.pb.h" 19 template <
typename Service>
33 iroha::protocol::Proposal>;
42 std::shared_ptr<proto::OnDemandOrdering::StubInterface> stub,
43 std::shared_ptr<TransportFactoryType> proposal_factory,
45 std::chrono::milliseconds proposal_request_timeout,
55 std::shared_ptr<proto::OnDemandOrdering::StubInterface> stub_;
56 std::shared_ptr<TransportFactoryType> proposal_factory_;
57 std::function<TimepointType()> time_provider_;
58 std::chrono::milliseconds proposal_request_timeout_;
59 std::function<void(ProposalEvent)> callback_;
60 std::weak_ptr<grpc::ClientContext> context_;
70 std::shared_ptr<TransportFactoryType> proposal_factory,
74 std::unique_ptr<ClientFactory> client_factory,
81 std::shared_ptr<TransportFactoryType> proposal_factory_;
82 std::function<OnDemandOsClientGrpc::TimepointType()> time_provider_;
83 std::chrono::milliseconds proposal_request_timeout_;
85 std::unique_ptr<ClientFactory> client_factory_;
86 std::function<void(ProposalEvent)> callback_;
93 #endif // IROHA_ON_DEMAND_OS_TRANSPORT_CLIENT_GRPC_HPP
Definition: on_demand_common.hpp:27
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:64
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:32
proto::OnDemandOrdering Service
Definition: on_demand_os_client_grpc.hpp:65
std::vector< TransactionBatchType > CollectionType
Definition: on_demand_os_transport.hpp:43
Definition: mst_transport_grpc.hpp:29
Definition: application.hpp:100
Definition: on_demand_os_client_grpc.hpp:63