Returns whether this instance supports getting data members through a call to {@link 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
LoadBalancer allows you to send operations to one of a number of endpoints (Members). It is up to the implementation to use different load balancing policies.
If Client is configured with ClientNetworkConfig.smartRouting, only the operations that are not key based will be routed to the endpoint returned by the LoadBalancer. If it is not, the LoadBalancer will not be used.