public class LeastConnectionBalanceStrategy extends AbstractLoadBalanceStrategy
| Constructor and Description |
|---|
LeastConnectionBalanceStrategy(LoadBalanceClientGroup clientGroup) |
| Modifier and Type | Method and Description |
|---|---|
protected ClientSocket |
openBestServer(int startIndex,
ClientSocketFactory oldSrun)
Opens the best load balance server.
|
void |
setConnectionWeight(int weight) |
void |
setCpuWeight(int weight) |
getClientList, nextRoundRobin, openServer, toStringpublic LeastConnectionBalanceStrategy(LoadBalanceClientGroup clientGroup)
public void setCpuWeight(int weight)
public void setConnectionWeight(int weight)
protected ClientSocket openBestServer(int startIndex, ClientSocketFactory oldSrun)
openBestServer in class AbstractLoadBalanceStrategyoldSrun - on failover, the client which failed with 503