@Configuration @ConditionalOnClass(value={com.netflix.client.IClient.class,org.springframework.web.client.RestTemplate.class,org.springframework.web.client.AsyncRestTemplate.class,com.netflix.ribbon.Ribbon.class}) @RibbonClients @EnableConfigurationProperties(value=RibbonEagerLoadProperties.class) public class RibbonAutoConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
RibbonAutoConfiguration.RibbonClientConfig |
Constructor and Description |
---|
RibbonAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.cloud.client.loadbalancer.LoadBalancedRetryPolicyFactory |
loadBalancedRetryPolicyFactory(SpringClientFactory clientFactory) |
org.springframework.cloud.client.loadbalancer.LoadBalancerClient |
loadBalancerClient() |
org.springframework.cloud.client.loadbalancer.LoadBalancedRetryPolicyFactory |
neverRetryPolicyFactory() |
PropertiesFactory |
propertiesFactory() |
RibbonApplicationContextInitializer |
ribbonApplicationContextInitializer() |
org.springframework.cloud.client.actuator.HasFeatures |
ribbonFeature() |
SpringClientFactory |
springClientFactory() |
@Bean public org.springframework.cloud.client.actuator.HasFeatures ribbonFeature()
@Bean public SpringClientFactory springClientFactory()
@Bean @ConditionalOnMissingBean(value=org.springframework.cloud.client.loadbalancer.LoadBalancerClient.class) public org.springframework.cloud.client.loadbalancer.LoadBalancerClient loadBalancerClient()
@Bean @ConditionalOnClass(name="org.springframework.retry.support.RetryTemplate") @ConditionalOnMissingBean public org.springframework.cloud.client.loadbalancer.LoadBalancedRetryPolicyFactory loadBalancedRetryPolicyFactory(SpringClientFactory clientFactory)
@Bean @ConditionalOnMissingClass(value="org.springframework.retry.support.RetryTemplate") @ConditionalOnMissingBean public org.springframework.cloud.client.loadbalancer.LoadBalancedRetryPolicyFactory neverRetryPolicyFactory()
@Bean @ConditionalOnMissingBean public PropertiesFactory propertiesFactory()
@Bean @ConditionalOnProperty(value="ribbon.eager-load.enabled", matchIfMissing=false) public RibbonApplicationContextInitializer ribbonApplicationContextInitializer()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.