类 RandomLoadBalance

  • 所有已实现的接口:
    LoadBalance

    public class RandomLoadBalance
    extends AbstractLoadBalance
    This class select one provider from multiple providers randomly. You can define weights for each provider: If the weights are all the same then it will use random.nextInt(number of invokers). If the weights are different then it will use random.nextInt(w1 + w2 + ... + wn) Note that if the performance of the machine is better than others, you can set a larger weight. If the performance is not so good, you can set a smaller weight.
    • 构造器详细资料

      • RandomLoadBalance

        public RandomLoadBalance()