public interface LoadBalancer
LoadBalancerallows 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
ClientConfig.isSmartRouting(), only the operations that are not key based will be router to the endpoint returned by the LoadBalancer. If it is not
LoadBalancerwill not be used. For configuration see
|Modifier and Type||Method and Description|
Initializes the LoadBalancer.
Returns the next member to route to.
void init(Cluster cluster, ClientConfig config)
cluster- the Cluster this LoadBalancer uses to select members from.
config- the ClientConfig.
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.