public class AsyncRestTemplateRateLimiterInterceptor extends Object implements org.springframework.http.client.AsyncClientHttpRequestInterceptor
| 构造器和说明 |
|---|
AsyncRestTemplateRateLimiterInterceptor(String serviceName,
org.springframework.core.env.Environment environment) |
public AsyncRestTemplateRateLimiterInterceptor(String serviceName, org.springframework.core.env.Environment environment)
public org.springframework.util.concurrent.ListenableFuture<org.springframework.http.client.ClientHttpResponse> intercept(org.springframework.http.HttpRequest request,
byte[] body,
org.springframework.http.client.AsyncClientHttpRequestExecution execution)
throws IOException
intercept 在接口中 org.springframework.http.client.AsyncClientHttpRequestInterceptorIOExceptionCopyright © 2020. All rights reserved.