aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++/support
diff options
context:
space:
mode:
authorGravatar Juanli Shen <juanlishen@google.com>2017-09-10 18:28:03 -0700
committerGravatar Juanli Shen <juanlishen@google.com>2017-09-11 09:22:48 -0700
commitaba0a0a54412fe59bc2090334ae26c99bb148097 (patch)
tree1e689245415306487885e28d310c82162d7a6206 /include/grpc++/support
parentc7520d0d8f1c3833f9a1c04c953e272a120f31c4 (diff)
Add fallback (use backends from resolver if can't reach balancer) to grpclb.
Diffstat (limited to 'include/grpc++/support')
-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);