Hazelcast C++ Client
 All Classes Functions Variables Enumerations Pages
Public Member Functions | List of all members
hazelcast::client::LoadBalancer Class Referenceabstract

LoadBalancer allows you to send operations to one of a number of endpoints(Members). More...

#include <LoadBalancer.h>

Public Member Functions

virtual void init (Cluster &cluster)=0
 This method will be called when load balancer is initialized. More...
 
virtual const Member next ()=0
 Returns the next member to route to. More...
 

Detailed Description

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 configured as smart, only the operations that are not key based will be router to the endpoint returned by the Load Balancer. If it is not smart, LoadBalancer will not be used. Note Client is smart by default.

Member Function Documentation

virtual void hazelcast::client::LoadBalancer::init ( Cluster cluster)
pure virtual

This method will be called when load balancer is initialized.

Parameters
clusterCluster contains current membership information for initialization. And one can add membership through this class for future notifications.
virtual const Member hazelcast::client::LoadBalancer::next ( )
pure virtual

Returns the next member to route to.

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

The documentation for this class was generated from the following files: