Search in sources :

Example 1 with OverrideRestClient

use of org.springframework.cloud.netflix.ribbon.RibbonClientConfiguration.OverrideRestClient in project spring-cloud-netflix by spring-cloud.

the class RibbonClientConfigurationTests method clients.

private List<AbstractLoadBalancerAwareClient> clients() {
    ArrayList<AbstractLoadBalancerAwareClient> clients = new ArrayList<>();
    clients.add(new OverrideRestClient(this.config, this.inspector));
    clients.add(new RibbonLoadBalancingHttpClient(this.config, this.inspector));
    clients.add(new OkHttpLoadBalancingClient(this.config, this.inspector));
    return clients;
}
Also used : OverrideRestClient(org.springframework.cloud.netflix.ribbon.RibbonClientConfiguration.OverrideRestClient) AbstractLoadBalancerAwareClient(com.netflix.client.AbstractLoadBalancerAwareClient) OkHttpLoadBalancingClient(org.springframework.cloud.netflix.ribbon.okhttp.OkHttpLoadBalancingClient) RibbonLoadBalancingHttpClient(org.springframework.cloud.netflix.ribbon.apache.RibbonLoadBalancingHttpClient) ArrayList(java.util.ArrayList)

Aggregations

AbstractLoadBalancerAwareClient (com.netflix.client.AbstractLoadBalancerAwareClient)1 ArrayList (java.util.ArrayList)1 OverrideRestClient (org.springframework.cloud.netflix.ribbon.RibbonClientConfiguration.OverrideRestClient)1 RibbonLoadBalancingHttpClient (org.springframework.cloud.netflix.ribbon.apache.RibbonLoadBalancingHttpClient)1 OkHttpLoadBalancingClient (org.springframework.cloud.netflix.ribbon.okhttp.OkHttpLoadBalancingClient)1