Apache Mesos
Public Member Functions | Public Attributes | List of all members
process::grpc::client::Connection Class Reference

A copyable interface to manage a connection to a gRPC server. More...

#include <grpc.hpp>

Public Member Functions

 Connection (const std::string &uri, const std::shared_ptr<::grpc::ChannelCredentials > &credentials=::grpc::InsecureChannelCredentials())
 
 Connection (std::shared_ptr<::grpc::Channel > _channel)
 

Public Attributes

const std::shared_ptr<::grpc::Channel > channel
 

Detailed Description

A copyable interface to manage a connection to a gRPC server.

All Connection copies share the same gRPC channel which is thread safe. Note that the actual connection is established lazily by the gRPC library at the time an RPC is made to the channel.

Constructor & Destructor Documentation

process::grpc::client::Connection::Connection ( const std::string &  uri,
const std::shared_ptr<::grpc::ChannelCredentials > &  credentials = ::grpc::InsecureChannelCredentials() 
)
inline
process::grpc::client::Connection::Connection ( std::shared_ptr<::grpc::Channel >  _channel)
inlineexplicit

Member Data Documentation

const std::shared_ptr<::grpc::Channel> process::grpc::client::Connection::channel

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