1 of 1 people found this helpful
At the moment your restricted to the api
int select (int max);.
You can raise a jira if you want to add extra functionality but its doubtful we'll get time to do it in the near future. You could always provide your own patch!
I thought so. Thanks Andy for the response.
This is an easy change but requires API change.
One would need to change the select method to:
public interface ConnectionLoadBalancingPolicy
* Returns the selected index according to the policy implementation.
* @param max maximum position index that can be selected
int select(Pair<TransportConfiguration, TransportConfiguration> topologyArray);
and make the adjustments on the implementation.
Have there been any update to this issue?
I too would like to know the address of the nodes (and how they match to the return value) before making a selection.
I don't think so. The interface looks the same as it always has - https://github.com/hornetq/hornetq/blob/master/hornetq-core-client/src/main/java/org/hornetq/api/core/client/loadbalance/ConnectionLoadBalancingPolicy.java.