Returns whether this instance supports getting data members through a call to nextDataMember.
Returns true
if this load balancer can get a data member.
Initializes the LoadBalancer.
the Cluster this LoadBalancer uses to select members from.
the ClientConfig.
Returns the next member to route to.
Returns the next member or null
if no member is available
Returns the next data member to route to.
Returns the next data member or null
if no data member is available
Generated using TypeDoc
A LoadBalancer selects one of the endpoints(Members) for the next send operation that be directed to many endpoints. It is up to the implementation to use different load balancing policies.
If the client is a smart client configured with ClientNetworkConfig.smartRouting, only the operations that are not key based will be routed via LoadBalancer. If the client is not a smart client, the LoadBalancer will not be used.