@Singleton
@Replaces(value=io.micronaut.http.client.loadbalance.ServiceInstanceListLoadBalancerFactory.class)
public class RibbonServiceInstanceListLoadBalancerFactory
extends io.micronaut.http.client.loadbalance.ServiceInstanceListLoadBalancerFactory
ServiceInstanceListLoadBalancerFactory
with one that returns RibbonLoadBalancer
instances.Constructor and Description |
---|
RibbonServiceInstanceListLoadBalancerFactory(io.micronaut.context.BeanContext beanContext,
com.netflix.client.config.IClientConfig defaultClientConfig,
io.micronaut.context.env.Environment environment)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
io.micronaut.http.client.LoadBalancer |
create(io.micronaut.discovery.ServiceInstanceList serviceInstanceList) |
protected RibbonLoadBalancer |
createRibbonLoadBalancer(com.netflix.client.config.IClientConfig niwsClientConfig,
com.netflix.loadbalancer.IRule rule,
com.netflix.loadbalancer.IPing ping,
com.netflix.loadbalancer.ServerListFilter serverListFilter,
com.netflix.loadbalancer.ServerList<com.netflix.loadbalancer.Server> serverList)
Create the load balancer based on the parameters.
|
public RibbonServiceInstanceListLoadBalancerFactory(io.micronaut.context.BeanContext beanContext, com.netflix.client.config.IClientConfig defaultClientConfig, io.micronaut.context.env.Environment environment)
beanContext
- beanContextdefaultClientConfig
- defaultClientConfigenvironment
- The environmentpublic io.micronaut.http.client.LoadBalancer create(io.micronaut.discovery.ServiceInstanceList serviceInstanceList)
create
in class io.micronaut.http.client.loadbalance.ServiceInstanceListLoadBalancerFactory
protected RibbonLoadBalancer createRibbonLoadBalancer(com.netflix.client.config.IClientConfig niwsClientConfig, com.netflix.loadbalancer.IRule rule, com.netflix.loadbalancer.IPing ping, com.netflix.loadbalancer.ServerListFilter serverListFilter, com.netflix.loadbalancer.ServerList<com.netflix.loadbalancer.Server> serverList)
niwsClientConfig
- niwsClientConfigrule
- ruleping
- pingserverListFilter
- serverListFilterserverList
- serverList