Top Description Methods
org.apache.http.client

public Interface HttpRequestRetryHandler

Known Direct Implementers
org.apache.http.impl.client.DefaultHttpRequestRetryHandler
Imports
java.io.IOException, org.apache.http.protocol.HttpContext

A handler for determining if an HttpRequest should be retried after a recoverable exception during execution.

Implementations of this interface must be thread-safe. Access to shared data must be synchronized as methods of this interface may be executed from multiple threads.

Since
4.0

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the method should be retried, false otherwise
retryRequest
(IOException
the exception that occurred
exception
,
int
the number of times this method has been unsuccessfully executed
executionCount
,
HttpContext
the context for the request execution
context
)

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

Method Detail

retryRequestback to summary
public boolean retryRequest(IOException exception, int executionCount, HttpContext context)

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

Parameters
exception:IOException

the exception that occurred

executionCount:int

the number of times this method has been unsuccessfully executed

context:HttpContext

the context for the request execution

Returns:boolean

true if the method should be retried, false otherwise