@Replaces(value=io.micronaut.http.client.loadbalance.DiscoveryClientLoadBalancerFactory.class)
@Singleton
public class RibbonDiscoveryClientLoadBalancerFactory
extends io.micronaut.http.client.loadbalance.DiscoveryClientLoadBalancerFactory
DiscoveryClientLoadBalancerFactory
with one that returns RibbonLoadBalancer
instances.Constructor and Description |
---|
RibbonDiscoveryClientLoadBalancerFactory(io.micronaut.discovery.DiscoveryClient discoveryClient,
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(java.lang.String serviceID) |
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 RibbonDiscoveryClientLoadBalancerFactory(io.micronaut.discovery.DiscoveryClient discoveryClient, io.micronaut.context.BeanContext beanContext, com.netflix.client.config.IClientConfig defaultClientConfig, io.micronaut.context.env.Environment environment)
discoveryClient
- discoveryClientbeanContext
- beanContextdefaultClientConfig
- defaultClientConfigenvironment
- The environmentpublic io.micronaut.http.client.LoadBalancer create(java.lang.String serviceID)
create
in class io.micronaut.http.client.loadbalance.DiscoveryClientLoadBalancerFactory
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