Class ShortestResponseLoadBalance
java.lang.Object
org.apache.dubbo.rpc.cluster.loadbalance.AbstractLoadBalance
org.apache.dubbo.rpc.cluster.loadbalance.ShortestResponseLoadBalance
- All Implemented Interfaces:
LoadBalance,org.apache.dubbo.rpc.model.ScopeModelAware
public class ShortestResponseLoadBalance
extends AbstractLoadBalance
implements org.apache.dubbo.rpc.model.ScopeModelAware
ShortestResponseLoadBalance
Filter the number of invokers with the shortest response time of
success calls and count the weights and quantities of these invokers in last slide window.
If there is only one invoker, use the invoker directly;
if there are multiple invokers and the weights are not the same, then random according to the total weight;
if there are multiple invokers and the same weight, then randomly called.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetApplicationModel(org.apache.dubbo.rpc.model.ApplicationModel applicationModel) Methods inherited from class org.apache.dubbo.rpc.cluster.loadbalance.AbstractLoadBalance
selectMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.dubbo.rpc.model.ScopeModelAware
setFrameworkModel, setModuleModel, setScopeModel
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
ShortestResponseLoadBalance
public ShortestResponseLoadBalance()
-
-
Method Details
-
setApplicationModel
public void setApplicationModel(org.apache.dubbo.rpc.model.ApplicationModel applicationModel) - Specified by:
setApplicationModelin interfaceorg.apache.dubbo.rpc.model.ScopeModelAware
-