public class ResponseTimeWeightedRule extends RoundRobinRule
RoundRobinRule
.WeightedResponseTimeRule
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_TIMER_INTERVAL
Deprecated.
|
protected java.util.concurrent.atomic.AtomicBoolean |
serverWeightAssignmentInProgress
Deprecated.
|
protected java.util.Timer |
serverWeightTimer
Deprecated.
|
static com.netflix.client.config.IClientConfigKey<java.lang.Integer> |
WEIGHT_TASK_TIMER_INTERVAL_CONFIG_KEY
Deprecated.
|
Constructor and Description |
---|
ResponseTimeWeightedRule()
Deprecated.
|
ResponseTimeWeightedRule(ILoadBalancer lb)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Server |
choose(ILoadBalancer lb,
java.lang.Object key)
Deprecated.
|
void |
initWithNiwsConfig(com.netflix.client.config.IClientConfig clientConfig)
Deprecated.
|
void |
setLoadBalancer(ILoadBalancer lb)
Deprecated.
|
void |
shutdown()
Deprecated.
|
choose
getLoadBalancer
public static final com.netflix.client.config.IClientConfigKey<java.lang.Integer> WEIGHT_TASK_TIMER_INTERVAL_CONFIG_KEY
public static final int DEFAULT_TIMER_INTERVAL
protected java.util.Timer serverWeightTimer
protected java.util.concurrent.atomic.AtomicBoolean serverWeightAssignmentInProgress
public ResponseTimeWeightedRule()
public ResponseTimeWeightedRule(ILoadBalancer lb)
public void setLoadBalancer(ILoadBalancer lb)
setLoadBalancer
in interface IRule
setLoadBalancer
in class AbstractLoadBalancerRule
public void shutdown()
public Server choose(ILoadBalancer lb, java.lang.Object key)
choose
in class RoundRobinRule
public void initWithNiwsConfig(com.netflix.client.config.IClientConfig clientConfig)
initWithNiwsConfig
in interface com.netflix.client.IClientConfigAware
initWithNiwsConfig
in class RoundRobinRule