接口 LoadbalanceRules


  • public interface LoadbalanceRules
    constant for Loadbalance strategy
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      static String CONSISTENT_HASH
      Consistent Hash, requests with the same parameters are always sent to the same provider.
      static String EMPTY  
      static String LEAST_ACTIVE
      Filter the number of invokers with the least number of active calls and count the weights and quantities of these invokers.
      static String RANDOM
      This class select one provider from multiple providers randomly.
      static String ROUND_ROBIN
      Round robin load balance.
      static 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.
    • 字段详细资料

      • 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.
        另请参阅:
        常量字段值