@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value=org.springframework.web.reactive.function.client.WebClient.class) @Conditional(value=org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration.OnAnyLoadBalancerImplementationPresentCondition.class) public class LoadBalancerBeanPostProcessorAutoConfiguration extends Object
BeanPostProcessor that allows the use of
a LoadBalanced WebClient.Builder with
ReactorLoadBalancerExchangeFilterFunction and ReactiveLoadBalancer used
under the hood. NOTE: This has been extracted to a separate configuration in order to
not impact instantiation and post-processing of other Reactor-LoadBalancer-related
beans.| Modifier and Type | Class and Description |
|---|---|
protected static class |
LoadBalancerBeanPostProcessorAutoConfiguration.ReactiveLoadBalancerConfig
Deprecated.
|
protected static class |
LoadBalancerBeanPostProcessorAutoConfiguration.ReactorDeferringLoadBalancerFilterConfig |
| Constructor and Description |
|---|
LoadBalancerBeanPostProcessorAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
LoadBalancerWebClientBuilderBeanPostProcessor |
loadBalancerWebClientBuilderBeanPostProcessor(DeferringLoadBalancerExchangeFilterFunction deferringExchangeFilterFunction,
org.springframework.context.ApplicationContext context) |
public LoadBalancerBeanPostProcessorAutoConfiguration()
@Bean public LoadBalancerWebClientBuilderBeanPostProcessor loadBalancerWebClientBuilderBeanPostProcessor(DeferringLoadBalancerExchangeFilterFunction deferringExchangeFilterFunction, org.springframework.context.ApplicationContext context)
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.