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