Java Code Examples for org.springframework.cloud.loadbalancer.support.LoadBalancerClientFactory#setConfigurations()
The following examples show how to use
org.springframework.cloud.loadbalancer.support.LoadBalancerClientFactory#setConfigurations() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LoadBalancerAutoConfiguration.java From spring-cloud-commons with Apache License 2.0 | 5 votes |
@ConditionalOnMissingBean @Bean public LoadBalancerClientFactory loadBalancerClientFactory() { LoadBalancerClientFactory clientFactory = new LoadBalancerClientFactory(); clientFactory.setConfigurations( this.configurations.getIfAvailable(Collections::emptyList)); return clientFactory; }
Example 2
Source File: LoadBalancerAutoConfiguration.java From spring-cloud-loadbalancer with Apache License 2.0 | 4 votes |
@Bean public LoadBalancerClientFactory loadBalancerClientFactory() { LoadBalancerClientFactory clientFactory = new LoadBalancerClientFactory(); clientFactory.setConfigurations(configurations.getIfAvailable(Collections::emptyList)); return clientFactory; }