public class RetryRestTemplate
extends org.springframework.web.client.AsyncRestTemplate
| 构造器和说明 |
|---|
RetryRestTemplate() |
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) |
RetryRestTemplate(org.springframework.core.task.AsyncListenableTaskExecutor taskExecutor) |
RetryRestTemplate(int maxRetryTimes) |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
int |
getMaxRetryTimes() |
protected <T> org.springframework.web.client.ResponseExtractor<org.springframework.http.ResponseEntity<T>> |
responseEntityExtractor(Type responseType) |
void |
setMaxRetryTimes(int maxRetryTimes) |
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, setUriTemplateHandlergetAsyncRequestFactory, getInterceptors, setInterceptorspublic RetryRestTemplate()
public RetryRestTemplate(int maxRetryTimes)
public RetryRestTemplate(org.springframework.core.task.AsyncListenableTaskExecutor taskExecutor)
public RetryRestTemplate(org.springframework.http.client.AsyncClientHttpRequestFactory asyncRequestFactory)
public RetryRestTemplate(org.springframework.http.client.AsyncClientHttpRequestFactory asyncRequestFactory,
org.springframework.http.client.ClientHttpRequestFactory syncRequestFactory)
public RetryRestTemplate(org.springframework.http.client.AsyncClientHttpRequestFactory requestFactory,
org.springframework.web.client.RestTemplate restTemplate)
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.RestClientExceptionprotected <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.AsyncRestTemplateorg.springframework.web.client.RestClientExceptionprotected <T> org.springframework.web.client.ResponseExtractor<org.springframework.http.ResponseEntity<T>> responseEntityExtractor(Type responseType)
responseEntityExtractor 在类中 org.springframework.web.client.AsyncRestTemplatepublic int getMaxRetryTimes()
public void setMaxRetryTimes(int maxRetryTimes)
Copyright © 2023. All rights reserved.