aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++/support
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2016-10-26 09:02:37 -0700
committerGravatar Mark D. Roth <roth@google.com>2016-10-26 12:54:59 -0700
commit7190b0c6510b75766362c43ec32c9e497057bced (patch)
tree35fa3f978aeb68076a124df66a4be8cd44dcac00 /include/grpc++/support
parentd4a5971ae89e124f67781a6fda57b36af3d7fb54 (diff)
Add ChannelArguments::SetLoadBalancingPolicyName() to C++ API.
Diffstat (limited to 'include/grpc++/support')
-rw-r--r--include/grpc++/support/channel_arguments.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/grpc++/support/channel_arguments.h b/include/grpc++/support/channel_arguments.h
index ae243939e9..9de5497fb8 100644
--- a/include/grpc++/support/channel_arguments.h
+++ b/include/grpc++/support/channel_arguments.h
@@ -80,6 +80,11 @@ class ChannelArguments {
/// The given string will be sent at the front of the user agent string.
void SetUserAgentPrefix(const grpc::string& user_agent_prefix);
+ // Set LB policy name.
+ // Note that if the name resolver returns only balancer addresses, the
+ // grpclb LB policy will be used, regardless of what is specified here.
+ void SetLoadBalancingPolicyName(const grpc::string& lb_policy_name);
+
// Generic channel argument setters. Only for advanced use cases.
/// Set an integer argument \a value under \a key.
void SetInt(const grpc::string& key, int value);