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 Details

    • AsyncLoadBalancerInterceptor

      public AsyncLoadBalancerInterceptor(LoadBalancerClient loadBalancer)
  • Method Details

    • 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 interface org.springframework.http.client.AsyncClientHttpRequestInterceptor
      Throws:
      IOException