* @return the builder
*/
public LoadBalanceDefinition weighted(boolean roundRobin, ArrayList<Integer> distributionRatioList) {
WeightedLoadBalancer weighted;
if (!roundRobin) {
weighted = new WeightedRandomLoadBalancer(distributionRatioList);
} else {
weighted = new WeightedRoundRobinLoadBalancer(distributionRatioList);
}
loadBalancerType = new LoadBalancerDefinition(weighted);
return this;