Interface LoadbalanceRules
public interface LoadbalanceRules
constant for Load-balance strategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringadaptive load balance.static final StringConsistent Hash, requests with the same parameters are always sent to the same provider.static final Stringstatic final StringFilter the number of invokers with the least number of active calls and count the weights and quantities of these invokers.static final StringThis class select one provider from multiple providers randomly.static final StringRound-robin load balance.static final StringFilter the number of invokers with the shortest response time of success calls and count the weights and quantities of these invokers.
-
Field Details
-
RANDOM
This class select one provider from multiple providers randomly.- See Also:
-
ROUND_ROBIN
Round-robin load balance.- See Also:
-
LEAST_ACTIVE
Filter the number of invokers with the least number of active calls and count the weights and quantities of these invokers.- See Also:
-
CONSISTENT_HASH
Consistent Hash, requests with the same parameters are always sent to the same provider.- See Also:
-
SHORTEST_RESPONSE
Filter the number of invokers with the shortest response time of success calls and count the weights and quantities of these invokers.- See Also:
-
ADAPTIVE
adaptive load balance.- See Also:
-
EMPTY
- See Also:
-