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

#include "on_demand_os_transport.hpp"

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

Public Member Functions

virtual std::unique_ptr< OdOsNotificationcreate (const shared_model::interface::Peer &to)=0
 
virtual ~OdOsNotificationFactory ()=default
 

Detailed Description

Factory for creating communication interface to a specific peer

Constructor & Destructor Documentation

virtual iroha::ordering::transport::OdOsNotificationFactory::~OdOsNotificationFactory ( )
virtualdefault

Member Function Documentation

virtual std::unique_ptr<OdOsNotification> iroha::ordering::transport::OdOsNotificationFactory::create ( const shared_model::interface::Peer to)
pure virtual

Create corresponding OdOsNotification interface for peer Returned pointer is guaranteed to be not equal to nullptr

Parameters
peer- peer to connect
Returns
connection represented with OdOsNotification interface

Implemented in iroha::ordering::transport::OnDemandOsClientGrpcFactory.


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