153154155156157158159160161
this.jobParameters = jobParameters; } public LoadBalancer getConsumerLoadBalancer() { if (consumerLoadBalancer == null) { consumerLoadBalancer = new RoundRobinLoadBalancer(); } return consumerLoadBalancer; }
244245246247248249250251
* Uses round robin load balancer * * @return the builder */ public LoadBalanceDefinition roundRobin() { setLoadBalancerType(new LoadBalancerDefinition(new RoundRobinLoadBalancer())); return this; }
123124125126127128129130131
141142143144145146147148149
140141142143144145146147
loadBalancerType = new LoadBalancerType(loadBalancer); return this; } public LoadBalanceType roundRobin() { loadBalancerType = new LoadBalancerType(new RoundRobinLoadBalancer()); return this; }
231232233234235236237
started = false; } } protected LoadBalancer createLoadBalancer() { return new RoundRobinLoadBalancer(); }
242243244245246247248249
222223224225226227228
LOG.debug("Removing consumer {}", consumer.getProcessor()); getLoadBalancer().removeProcessor(consumer.getProcessor()); } protected LoadBalancer createLoadBalancer() { return new RoundRobinLoadBalancer(); }