@Join public class P2cLoadBalancer extends AbstractLoadBalancer
| Constructor and Description |
|---|
P2cLoadBalancer() |
| Modifier and Type | Method and Description |
|---|---|
protected Upstream |
doSelect(java.util.List<Upstream> upstreamList,
java.lang.String ip)
pick of 2 choices to select upstream.
|
long |
load(Upstream upstream)
calculate load.
|
getWeight, selectprotected Upstream doSelect(java.util.List<Upstream> upstreamList, java.lang.String ip)
doSelect in class AbstractLoadBalancerupstreamList - the upstream listip - the ippublic long load(Upstream upstream)
upstream - the upstreamCopyright © 2023 The Apache Software Foundation. All rights reserved.