Package com.hazelcast.client.util
Class StaticLB
java.lang.Object
com.hazelcast.client.util.StaticLB
- All Implemented Interfaces:
 LoadBalancer
The StaticLB is a 
LoadBalancer that always returns the same member. This can
 be useful for testing if you want to hit a specific member.- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this instance supports getting data members through a call toLoadBalancer.nextDataMember().voidinit(Cluster cluster, ClientConfig config) Initializes the LoadBalancer.next()Returns the next member to route to.Returns the next data member or null if no data member is available. 
- 
Constructor Details
- 
StaticLB
 
 - 
 - 
Method Details
- 
init
Description copied from interface:LoadBalancerInitializes the LoadBalancer.- Specified by:
 initin interfaceLoadBalancer- Parameters:
 cluster- the Cluster this LoadBalancer uses to select members from.config- the ClientConfig.
 - 
next
Description copied from interface:LoadBalancerReturns the next member to route to.- Specified by:
 nextin interfaceLoadBalancer- Returns:
 - Returns the next member or null if no member is available
 
 - 
nextDataMember
Description copied from interface:LoadBalancerReturns the next data member or null if no data member is available.- Specified by:
 nextDataMemberin interfaceLoadBalancer
 - 
canGetNextDataMember
public boolean canGetNextDataMember()Description copied from interface:LoadBalancerReturns whether this instance supports getting data members through a call toLoadBalancer.nextDataMember().- Specified by:
 canGetNextDataMemberin interfaceLoadBalancer- See Also:
 
 
 -