this(correlationExpression, new RoundRobinLoadBalancer());
}
public StickyLoadBalancer(Expression correlationExpression, QueueLoadBalancer loadBalancer) {
super();
this.correlationExpression = correlationExpression;
<BUG>this.loadBalancer = loadBalancer;
}</BUG>
protected synchronized Processor chooseProcessor(List<Processor> processors, Exchange exchange) {
Object value = correlationExpression.evaluate(exchange, Object.class);
Object key = getStickyKey(value);

this(correlationExpression, new RoundRobinLoadBalancer());
}
public StickyLoadBalancer(Expression correlationExpression, QueueLoadBalancer loadBalancer) {
super();
this.correlationExpression = correlationExpression;
this.loadBalancer = loadBalancer;
}
public Expression getCorrelationExpression() {
return correlationExpression;
}
protected synchronized Processor chooseProcessor(List<Processor> processors, Exchange exchange) {
Object value = correlationExpression.evaluate(exchange, Object.class);
Object key = getStickyKey(value);
