#include "channel_pool.hpp"
◆ ChannelPool()
| ChannelPool::ChannelPool |
( |
std::unique_ptr< ChannelProvider > |
channel_provider | ) |
|
|
explicit |
- Parameters
-
| channel_provider | - Factory that is used to create missing channels. |
◆ ~ChannelPool()
| ChannelPool::~ChannelPool |
( |
| ) |
|
|
default |
◆ getChannel()
Get or create a grpc::Channel (from a pool of channels)
- Parameters
-
| service_full_name | the full name of grpc service, e.g. iroha.consensus.yac.proto.Yac |
| peer | the target peer |
- Returns
- std::shared_ptr<grpc::Channel> to that address
Implements iroha::network::ChannelProvider.
The documentation for this class was generated from the following files: