aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient/GRPCCall+ChannelArg.h
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-06-19 13:44:57 -0700
committerGravatar Muxi Yan <mxyan@google.com>2018-06-19 13:49:44 -0700
commitc635e41c22fb939f781837b9705b8642c13af9ae (patch)
tree9aa06ff9af72b3e5044d272c843830cf0f33982c /src/objective-c/GRPCClient/GRPCCall+ChannelArg.h
parentb13eda3cb49bcbf5cb8926aef419acc1fffdb98f (diff)
Timeout and backoff
Diffstat (limited to 'src/objective-c/GRPCClient/GRPCCall+ChannelArg.h')
-rw-r--r--src/objective-c/GRPCClient/GRPCCall+ChannelArg.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall+ChannelArg.h b/src/objective-c/GRPCClient/GRPCCall+ChannelArg.h
index 0b6855f6a4..803f19dedf 100644
--- a/src/objective-c/GRPCClient/GRPCCall+ChannelArg.h
+++ b/src/objective-c/GRPCClient/GRPCCall+ChannelArg.h
@@ -60,4 +60,14 @@ typedef NS_ENUM(NSInteger, GRPCCompressAlgorithm) {
* immediately returned to the application layer. */
+ (void)enableRetry:(BOOL)enabled forHost:(nonnull NSString *)host;
+/** Set channel connection timeout and backoff parameters. All parameters are positive integers in
+ * milliseconds. Set a parameter to 0 to make gRPC use default value for that parameter.
+ *
+ * Refer to gRPC's doc at https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md for the
+ * details of each parameter. */
++ (void)setMinConnectTimeout:(unsigned int)timeout
+ initialBackoff:(unsigned int)initialBackoff
+ maxBackoff:(unsigned int)maxBackoff
+ forHost:(nonnull NSString *)host;
+
@end