public class RetryHandler extends Object implements org.apache.http.client.HttpRequestRetryHandler
构造器和说明 |
---|
RetryHandler(int maxRetries) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
retryRequest(IOException exception,
int executionCount,
org.apache.http.protocol.HttpContext context)
重试请求
exception为IO异常,executionCount为执行次数,context是HttpContext上下文
返回布尔型的retry :retry为false时不重试 , retry为true时重试
|
public boolean retryRequest(IOException exception, int executionCount, org.apache.http.protocol.HttpContext context)
retryRequest
在接口中 org.apache.http.client.HttpRequestRetryHandler
Copyright © 2016. All rights reserved.