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 Details

  • Constructor Details

    • ShortestResponseLoadBalance

      public ShortestResponseLoadBalance()
  • Method Details

    • setApplicationModel

      public void setApplicationModel(org.apache.dubbo.rpc.model.ApplicationModel applicationModel)
      Specified by:
      setApplicationModel in interface org.apache.dubbo.rpc.model.ScopeModelAware