com.netflix.loadbalancer
Class RoundRobinRule

java.lang.Object
  extended by com.netflix.loadbalancer.AbstractLoadBalancerRule
      extended by com.netflix.loadbalancer.RoundRobinRule
All Implemented Interfaces:
com.netflix.client.IClientConfigAware, IRule
Direct Known Subclasses:
ResponseTimeWeightedRule, WeightedResponseTimeRule

public class RoundRobinRule
extends AbstractLoadBalancerRule

The most well known and basic loadbalacing strategy, i.e. Round Robin Rule.


Constructor Summary
RoundRobinRule()
           
RoundRobinRule(ILoadBalancer lb)
           
 
Method Summary
 Server choose(ILoadBalancer lb, java.lang.Object key)
           
 Server choose(java.lang.Object key)
           
 void initWithNiwsConfig(com.netflix.client.config.IClientConfig clientConfig)
           
 
Methods inherited from class com.netflix.loadbalancer.AbstractLoadBalancerRule
getLoadBalancer, setLoadBalancer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoundRobinRule

public RoundRobinRule()

RoundRobinRule

public RoundRobinRule(ILoadBalancer lb)
Method Detail

choose

public Server choose(ILoadBalancer lb,
                     java.lang.Object key)

choose

public Server choose(java.lang.Object key)

initWithNiwsConfig

public void initWithNiwsConfig(com.netflix.client.config.IClientConfig clientConfig)