public class RandomLB extends AbstractLoadBalancer
LoadBalancer
that selects a random member to route to.Constructor and Description |
---|
RandomLB() |
Modifier and Type | Method and Description |
---|---|
boolean |
canGetNextDataMember()
Returns whether this instance supports getting data members through a call to
LoadBalancer.nextDataMember() . |
Member |
next()
Returns the next member to route to.
|
Member |
nextDataMember()
Returns the next data member to route to.
|
getDataMembers, getMembers, init, init, memberAdded, memberRemoved
public Member next()
LoadBalancer
public Member nextDataMember()
LoadBalancer
public boolean canGetNextDataMember()
LoadBalancer
LoadBalancer.nextDataMember()
.
This method is used by components that require communication with data members only, such as the SQL engine.
true
if this instance supports getting data members through a call to LoadBalancer.nextDataMember()
LoadBalancer.nextDataMember()
Copyright © 2022 Hazelcast, Inc.. All rights reserved.