hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::ordering::transport::OnDemandOsClientGrpcFactory Class Reference

#include "on_demand_os_client_grpc.hpp"

Inheritance diagram for iroha::ordering::transport::OnDemandOsClientGrpcFactory:
Inheritance graph
Collaboration diagram for iroha::ordering::transport::OnDemandOsClientGrpcFactory:
Collaboration graph

Public Types

using TransportFactoryType = OnDemandOsClientGrpc::TransportFactoryType
 

Public Member Functions

 OnDemandOsClientGrpcFactory (std::shared_ptr< network::AsyncGrpcClient< google::protobuf::Empty >> async_call, std::shared_ptr< TransportFactoryType > proposal_factory, std::function< OnDemandOsClientGrpc::TimepointType()> time_provider, OnDemandOsClientGrpc::TimeoutType proposal_request_timeout)
 
std::unique_ptr< OdOsNotificationcreate (const shared_model::interface::Peer &to) override
 
- Public Member Functions inherited from iroha::ordering::transport::OdOsNotificationFactory
virtual ~OdOsNotificationFactory ()=default
 

Member Typedef Documentation

Constructor & Destructor Documentation

OnDemandOsClientGrpcFactory::OnDemandOsClientGrpcFactory ( std::shared_ptr< network::AsyncGrpcClient< google::protobuf::Empty >>  async_call,
std::shared_ptr< TransportFactoryType proposal_factory,
std::function< OnDemandOsClientGrpc::TimepointType()>  time_provider,
OnDemandOsClientGrpc::TimeoutType  proposal_request_timeout 
)

Member Function Documentation

std::unique_ptr< OdOsNotification > OnDemandOsClientGrpcFactory::create ( const shared_model::interface::Peer to)
overridevirtual

Create connection with insecure gRPC channel defined by network::createClient method

See also
network/impl/grpc_channel_builder.hpp This factory method can be used in production code

Implements iroha::ordering::transport::OdOsNotificationFactory.

Here is the call graph for this function:


The documentation for this class was generated from the following files: