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 or null if no data member is available.
|
getDataMembers, getMembers, init, init, memberAdded, memberRemoved
public Member next()
LoadBalancer
public Member nextDataMember()
LoadBalancer
public boolean canGetNextDataMember()
LoadBalancer
LoadBalancer.nextDataMember()
.LoadBalancer.nextDataMember()
Copyright © 2022 Hazelcast, Inc.. All rights reserved.