Class AsyncLoadBalancerInterceptor
- java.lang.Object
-
- org.springframework.cloud.client.loadbalancer.AsyncLoadBalancerInterceptor
-
- All Implemented Interfaces:
org.springframework.http.client.AsyncClientHttpRequestInterceptor
public class AsyncLoadBalancerInterceptor extends Object implements org.springframework.http.client.AsyncClientHttpRequestInterceptor
- Author:
- Rob Worsnop, Olga Maciaszek-Sharma
-
-
Constructor Summary
Constructors Constructor Description AsyncLoadBalancerInterceptor(LoadBalancerClient loadBalancer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.util.concurrent.ListenableFuture<org.springframework.http.client.ClientHttpResponse>
intercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.AsyncClientHttpRequestExecution execution)
-
-
-
Constructor Detail
-
AsyncLoadBalancerInterceptor
public AsyncLoadBalancerInterceptor(LoadBalancerClient loadBalancer)
-
-
Method Detail
-
intercept
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
- Specified by:
intercept
in interfaceorg.springframework.http.client.AsyncClientHttpRequestInterceptor
- Throws:
IOException
-
-