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