@Contract(threading=IMMUTABLE) public class StandardHttpRequestRetryHandler extends DefaultHttpRequestRetryHandler
HttpRequestRetryHandler假定根据RFC-2616应该是幂等的所有请求的HTTP方法实际上是幂等的,并且可以重试。
根据RFC-2616第9.1.2节,幂等HTTP方法有:GET,HEAD,PUT,DELETE,OPTIONS和TRACE
INSTANCE| Constructor and Description |
|---|
StandardHttpRequestRetryHandler()
默认构造函数
|
StandardHttpRequestRetryHandler(int retryCount, boolean requestSentRetryEnabled)
默认构造函数
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
handleAsIdempotent(HttpRequest request) |
getRetryCount, isRequestSentRetryEnabled, requestIsAborted, retryRequestpublic StandardHttpRequestRetryHandler(int retryCount,
boolean requestSentRetryEnabled)
public StandardHttpRequestRetryHandler()
protected boolean handleAsIdempotent(HttpRequest request)
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.