Interface LoadbalanceRules


public interface LoadbalanceRules
constant for Load-balance strategy
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    adaptive load balance.
    static final String
    Consistent Hash, requests with the same parameters are always sent to the same provider.
    static final String
     
    static final String
    Filter the number of invokers with the least number of active calls and count the weights and quantities of these invokers.
    static final String
    This class select one provider from multiple providers randomly.
    static final String
    Round-robin load balance.
    static final String
    Filter the number of invokers with the shortest response time of success calls and count the weights and quantities of these invokers.
  • Field Details

    • RANDOM

      static final String RANDOM
      This class select one provider from multiple providers randomly.
      See Also:
    • ROUND_ROBIN

      static final String ROUND_ROBIN
      Round-robin load balance.
      See Also:
    • 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.
      See Also:
    • CONSISTENT_HASH

      static final String CONSISTENT_HASH
      Consistent Hash, requests with the same parameters are always sent to the same provider.
      See Also:
    • 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.
      See Also:
    • ADAPTIVE

      static final String ADAPTIVE
      adaptive load balance.
      See Also:
    • EMPTY

      static final String EMPTY
      See Also: