com.hazelcast.client
Interface LoadBalancer


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.


Method Summary
 void init(Cluster cluster, ClientConfig config)
           
 Member next()
          Returns the next member to route to
 

Method Detail

init

void init(Cluster cluster,
          ClientConfig config)

next

Member next()
Returns the next member to route to

Returns:
Returns the next member or null if no member is available


Copyright © 2013 Hazelcast, Inc.. All Rights Reserved.