类 RetryRestTemplate
java.lang.Object
org.springframework.http.client.support.AsyncHttpAccessor
org.springframework.http.client.support.InterceptingAsyncHttpAccessor
org.springframework.web.client.AsyncRestTemplate
cn.zhxu.toys.client.RetryRestTemplate
- 所有已实现的接口:
org.springframework.web.client.AsyncRestOperations
public class RetryRestTemplate
extends org.springframework.web.client.AsyncRestTemplate
-
字段概要
从类继承的字段 org.springframework.http.client.support.AsyncHttpAccessor
logger -
构造器概要
构造器构造器说明RetryRestTemplate(int maxRetryTimes) RetryRestTemplate(org.springframework.core.task.AsyncListenableTaskExecutor taskExecutor) RetryRestTemplate(org.springframework.http.client.AsyncClientHttpRequestFactory asyncRequestFactory) RetryRestTemplate(org.springframework.http.client.AsyncClientHttpRequestFactory asyncRequestFactory, org.springframework.http.client.ClientHttpRequestFactory syncRequestFactory) RetryRestTemplate(org.springframework.http.client.AsyncClientHttpRequestFactory requestFactory, org.springframework.web.client.RestTemplate restTemplate) -
方法概要
修饰符和类型方法说明protected <T> org.springframework.util.concurrent.ListenableFuture<T>doExecute(URI url, org.springframework.http.HttpMethod method, org.springframework.web.client.AsyncRequestCallback requestCallback, org.springframework.web.client.ResponseExtractor<T> responseExtractor) protected <T> org.springframework.util.concurrent.ListenableFuture<T>doRawExecute(URI url, org.springframework.http.HttpMethod method, org.springframework.web.client.AsyncRequestCallback requestCallback, org.springframework.web.client.ResponseExtractor<T> responseExtractor) intprotected <T> org.springframework.web.client.ResponseExtractor<org.springframework.http.ResponseEntity<T>>responseEntityExtractor(Type responseType) voidsetMaxRetryTimes(int maxRetryTimes) 从类继承的方法 org.springframework.web.client.AsyncRestTemplate
acceptHeaderRequestCallback, delete, delete, delete, exchange, exchange, exchange, exchange, exchange, exchange, execute, execute, execute, getErrorHandler, getForEntity, getForEntity, getForEntity, getMessageConverters, getRestOperations, getUriTemplateHandler, headersExtractor, headForHeaders, headForHeaders, headForHeaders, httpEntityCallback, httpEntityCallback, optionsForAllow, optionsForAllow, optionsForAllow, postForEntity, postForEntity, postForEntity, postForLocation, postForLocation, postForLocation, put, put, put, setDefaultUriVariables, setErrorHandler, setMessageConverters, setUriTemplateHandler从类继承的方法 org.springframework.http.client.support.InterceptingAsyncHttpAccessor
getAsyncRequestFactory, getInterceptors, setInterceptors从类继承的方法 org.springframework.http.client.support.AsyncHttpAccessor
createAsyncRequest, setAsyncRequestFactory
-
构造器详细资料
-
RetryRestTemplate
public RetryRestTemplate() -
RetryRestTemplate
public RetryRestTemplate(int maxRetryTimes) -
RetryRestTemplate
public RetryRestTemplate(org.springframework.core.task.AsyncListenableTaskExecutor taskExecutor) -
RetryRestTemplate
public RetryRestTemplate(org.springframework.http.client.AsyncClientHttpRequestFactory asyncRequestFactory) -
RetryRestTemplate
public RetryRestTemplate(org.springframework.http.client.AsyncClientHttpRequestFactory asyncRequestFactory, org.springframework.http.client.ClientHttpRequestFactory syncRequestFactory) -
RetryRestTemplate
public RetryRestTemplate(org.springframework.http.client.AsyncClientHttpRequestFactory requestFactory, org.springframework.web.client.RestTemplate restTemplate)
-
-
方法详细资料
-
doRawExecute
protected <T> org.springframework.util.concurrent.ListenableFuture<T> doRawExecute(URI url, org.springframework.http.HttpMethod method, org.springframework.web.client.AsyncRequestCallback requestCallback, org.springframework.web.client.ResponseExtractor<T> responseExtractor) throws org.springframework.web.client.RestClientException - 抛出:
org.springframework.web.client.RestClientException
-
doExecute
protected <T> org.springframework.util.concurrent.ListenableFuture<T> doExecute(URI url, org.springframework.http.HttpMethod method, org.springframework.web.client.AsyncRequestCallback requestCallback, org.springframework.web.client.ResponseExtractor<T> responseExtractor) throws org.springframework.web.client.RestClientException - 覆盖:
doExecute在类中org.springframework.web.client.AsyncRestTemplate- 抛出:
org.springframework.web.client.RestClientException
-
responseEntityExtractor
protected <T> org.springframework.web.client.ResponseExtractor<org.springframework.http.ResponseEntity<T>> responseEntityExtractor(Type responseType) - 覆盖:
responseEntityExtractor在类中org.springframework.web.client.AsyncRestTemplate
-
getMaxRetryTimes
public int getMaxRetryTimes() -
setMaxRetryTimes
public void setMaxRetryTimes(int maxRetryTimes)
-