GRPC C++
0.11.0.0
|
Options for channel creation. More...
#include <channel_arguments.h>
Public Member Functions | |
ChannelArguments () | |
~ChannelArguments () | |
ChannelArguments (const ChannelArguments &other) | |
ChannelArguments & | operator= (ChannelArguments other) |
void | Swap (ChannelArguments &other) |
void | SetChannelArgs (grpc_channel_args *channel_args) const |
Populates this instance with the arguments from channel_args. More... | |
void | SetSslTargetNameOverride (const grpc::string &name) |
Set target name override for SSL host name checking. More... | |
void | SetCompressionAlgorithm (grpc_compression_algorithm algorithm) |
Set the compression algorithm for the channel. More... | |
void | SetInt (const grpc::string &key, int value) |
Set an integer argument value under key. More... | |
void | SetString (const grpc::string &key, const grpc::string &value) |
Set a textual argument value under key. More... | |
Friends | |
class | SecureCredentials |
class | testing::ChannelArgumentsTest |
Options for channel creation.
The user can use generic setters to pass key value pairs down to c channel creation code. For grpc related options, concrete setters are provided.
|
inline |
|
inline |
grpc::ChannelArguments::ChannelArguments | ( | const ChannelArguments & | other | ) |
|
inline |
void grpc::ChannelArguments::SetChannelArgs | ( | grpc_channel_args * | channel_args | ) | const |
Populates this instance with the arguments from channel_args.
Does not take ownership of channel_args.
Note that the underlying arguments are shared. Changes made to either channel_args or this instance would be reflected on both.
void grpc::ChannelArguments::SetCompressionAlgorithm | ( | grpc_compression_algorithm | algorithm | ) |
Set the compression algorithm for the channel.
void grpc::ChannelArguments::SetInt | ( | const grpc::string & | key, |
int | value | ||
) |
Set an integer argument value under key.
void grpc::ChannelArguments::SetSslTargetNameOverride | ( | const grpc::string & | name | ) |
Set target name override for SSL host name checking.
void grpc::ChannelArguments::SetString | ( | const grpc::string & | key, |
const grpc::string & | value | ||
) |
Set a textual argument value under key.
void grpc::ChannelArguments::Swap | ( | ChannelArguments & | other | ) |
|
friend |
|
friend |