IHttpRequestRetryHandler.RetryRequest Method

Definition

Determines if a method should be retried after an IOException occurs during execution.

[Android.Runtime.Register("retryRequest", "(Ljava/io/IOException;ILorg/apache/http/protocol/HttpContext;)Z", "GetRetryRequest_Ljava_io_IOException_ILorg_apache_http_protocol_HttpContext_Handler:Org.Apache.Http.Client.IHttpRequestRetryHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool RetryRequest (Java.IO.IOException? exception, int executionCount, Org.Apache.Http.Protocol.IHttpContext? context);
[<Android.Runtime.Register("retryRequest", "(Ljava/io/IOException;ILorg/apache/http/protocol/HttpContext;)Z", "GetRetryRequest_Ljava_io_IOException_ILorg_apache_http_protocol_HttpContext_Handler:Org.Apache.Http.Client.IHttpRequestRetryHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member RetryRequest : Java.IO.IOException * int * Org.Apache.Http.Protocol.IHttpContext -> bool

Parameters

exception
IOException

the exception that occurred

executionCount
Int32

the number of times this method has been unsuccessfully executed

context
IHttpContext

the context for the request execution

Returns

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to