@ ConditionalOnSingleCandidate ( LoadBalancer . Factory . class ) @ ConditionalOnMissingBean ( name = "grpcLoadBalancerConfigurer" ) @ Bean @ SuppressWarnings ( "deprecation" ) @ Deprecated public GrpcChannelConfigurer grpcLoadBalancerConfigurer ( final LoadBalancer . Factory loadBalancerFactory ) { return ( channel , name ) -> channel . loadBalancerFactory ( loadBalancerFactory ) ; }
Creates the load balancer configurer bean for the given load balancer factory .