- All Implemented Interfaces:
public class RandomLB extends AbstractLoadBalancer
LoadBalancerthat selects a random member to route to.
nextpublic Member next()Returns the next member to route to.
- Returns the next member or null if no member is available
nextDataMemberpublic Member nextDataMember()Returns the next data member to route to.
- Returns the next data member or null if no data member is available
canGetNextDataMemberpublic boolean canGetNextDataMember()Returns whether this instance supports getting data members through a call to
This method is used by components that require communication with data members only, such as the SQL engine.