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" 28 iroha::protocol::Proposal>;
37 std::unique_ptr<proto::OnDemandOrdering::StubInterface> stub,
40 std::shared_ptr<TransportFactoryType> proposal_factory,
42 std::chrono::milliseconds proposal_request_timeout,
52 std::unique_ptr<proto::OnDemandOrdering::StubInterface> stub_;
53 std::shared_ptr<network::AsyncGrpcClient<google::protobuf::Empty>>
55 std::shared_ptr<TransportFactoryType> proposal_factory_;
56 std::function<TimepointType()> time_provider_;
57 std::chrono::milliseconds proposal_request_timeout_;
66 std::shared_ptr<TransportFactoryType> proposal_factory,
77 std::unique_ptr<OdOsNotification> create(
81 std::shared_ptr<network::AsyncGrpcClient<google::protobuf::Empty>>
83 std::shared_ptr<TransportFactoryType> proposal_factory_;
84 std::function<OnDemandOsClientGrpc::TimepointType()> time_provider_;
85 std::chrono::milliseconds proposal_request_timeout_;
93 #endif // IROHA_ON_DEMAND_OS_TRANSPORT_CLIENT_GRPC_HPP void onBatches(CollectionType batches) override
Definition: on_demand_os_client_grpc.cpp:34
shared_model::interface::AbstractTransportFactory< shared_model::interface::Proposal, iroha::protocol::Proposal > TransportFactoryType
Definition: on_demand_os_client_grpc.hpp:28
Definition: proposal.hpp:17
std::shared_ptr< Logger > LoggerPtr
Definition: logger_fwd.hpp:22
Definition: on_demand_os_transport.hpp:70
Definition: on_demand_os_client_grpc.hpp:23
Definition: block_query.hpp:15
std::chrono::system_clock::time_point TimepointType
Definition: on_demand_os_client_grpc.hpp:29
std::chrono::milliseconds TimeoutType
Definition: on_demand_os_client_grpc.hpp:30
Definition: on_demand_os_transport.hpp:31
OnDemandOsClientGrpc(std::unique_ptr< proto::OnDemandOrdering::StubInterface > stub, std::shared_ptr< network::AsyncGrpcClient< google::protobuf::Empty >> async_call, std::shared_ptr< TransportFactoryType > proposal_factory, std::function< TimepointType()> time_provider, std::chrono::milliseconds proposal_request_timeout, logger::LoggerPtr log)
Definition: on_demand_os_client_grpc.cpp:19
boost::optional< std::shared_ptr< const ProposalType > > onRequestProposal(consensus::Round round) override
Definition: on_demand_os_client_grpc.cpp:52
Definition: async_grpc_client.hpp:25
std::vector< TransactionBatchType > CollectionType
Definition: on_demand_os_transport.hpp:47
Definition: query_service.hpp:24
Definition: on_demand_os_client_grpc.hpp:60