aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++
diff options
context:
space:
mode:
authorGravatar Juanli Shen <juanlishen@google.com>2017-09-27 12:27:20 -0700
committerGravatar Juanli Shen <juanlishen@google.com>2017-09-27 12:27:20 -0700
commitfe40815682f7da0a7d6f09be2253d6660ef8e7a5 (patch)
tree8ffb0003467f24e1817747457bf2b5dbbf273235 /include/grpc++
parent708163a0b440e1489549ce6093bdf6598a6fc78c (diff)
Readd grpclb fallback
Diffstat (limited to 'include/grpc++')
-rw-r--r--include/grpc++/support/channel_arguments.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/grpc++/support/channel_arguments.h b/include/grpc++/support/channel_arguments.h
index 7b6befeaf1..9dc505f008 100644
--- a/include/grpc++/support/channel_arguments.h
+++ b/include/grpc++/support/channel_arguments.h
@@ -64,6 +64,12 @@ class ChannelArguments {
/// Set the compression algorithm for the channel.
void SetCompressionAlgorithm(grpc_compression_algorithm algorithm);
+ /// Set the grpclb fallback timeout (in ms) for the channel. If this amount
+ /// of time has passed but we have not gotten any non-empty \a serverlist from
+ /// the balancer, we will fall back to use the backend address(es) returned by
+ /// the resolver.
+ void SetGrpclbFallbackTimeout(int fallback_timeout);
+
/// Set the socket mutator for the channel.
void SetSocketMutator(grpc_socket_mutator* mutator);