public interface LoadBalancer
LoadBalancer
allows 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 ClientConfig#smart
,
only the operations that are not key based will be router to the endpoint returned by the Load Balancer.
If it is not ClientConfig#smart
, LoadBalancer
will be used for all operations.Modifier and Type | Method and Description |
---|---|
void |
init(Cluster cluster,
ClientConfig config) |
Member |
next()
Returns the next member to route to
|
void init(Cluster cluster, ClientConfig config)
Member next()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.