- 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.