接口 LoadbalanceRules
-
public interface LoadbalanceRulesconstant for Loadbalance strategy
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringCONSISTENT_HASHConsistent Hash, requests with the same parameters are always sent to the same provider.static StringEMPTYstatic StringLEAST_ACTIVEFilter the number of invokers with the least number of active calls and count the weights and quantities of these invokers.static StringRANDOMThis class select one provider from multiple providers randomly.static StringROUND_ROBINRound robin load balance.static StringSHORTEST_RESPONSEFilter the number of invokers with the shortest response time of success calls and count the weights and quantities of these invokers.
-
-
-
字段详细资料
-
RANDOM
static final String RANDOM
This class select one provider from multiple providers randomly.- 另请参阅:
- 常量字段值
-
LEAST_ACTIVE
static final String LEAST_ACTIVE
Filter the number of invokers with the least number of active calls and count the weights and quantities of these invokers.- 另请参阅:
- 常量字段值
-
CONSISTENT_HASH
static final String CONSISTENT_HASH
Consistent Hash, requests with the same parameters are always sent to the same provider.- 另请参阅:
- 常量字段值
-
SHORTEST_RESPONSE
static final String SHORTEST_RESPONSE
Filter the number of invokers with the shortest response time of success calls and count the weights and quantities of these invokers.- 另请参阅:
- 常量字段值
-
-