com.netflix.loadbalancer
Class AbstractLoadBalancerRule

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

public abstract class AbstractLoadBalancerRule
extends java.lang.Object
implements IRule, com.netflix.client.IClientConfigAware

Class that provides a default implementation for setting and getting load balancer


Constructor Summary
AbstractLoadBalancerRule()
           
 
Method Summary
 ILoadBalancer getLoadBalancer()
           
 void setLoadBalancer(ILoadBalancer lb)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.netflix.loadbalancer.IRule
choose
 
Methods inherited from interface com.netflix.client.IClientConfigAware
initWithNiwsConfig
 

Constructor Detail

AbstractLoadBalancerRule

public AbstractLoadBalancerRule()
Method Detail

setLoadBalancer

public void setLoadBalancer(ILoadBalancer lb)
Specified by:
setLoadBalancer in interface IRule

getLoadBalancer

public ILoadBalancer getLoadBalancer()
Specified by:
getLoadBalancer in interface IRule