18 #include "hazelcast/util/export.h" 
   19 #include "hazelcast/client/member.h" 
   26         namespace connection { 
class ClientConnectionManagerImpl; }
 
   45             template<
typename Handler,
 
   46                     typename = util::enable_if_rvalue_ref_t<Handler &&>>
 
   48                 init_ = std::forward<Handler>(h);
 
   52             template<
typename Handler,
 
   53                     typename = util::enable_if_rvalue_ref_t<Handler &&>>
 
   55                 init_ = std::forward<Handler>(h);
 
   56                 return std::move(*
this);
 
   64             template<
typename Handler,
 
   65                     typename = util::enable_if_rvalue_ref_t<Handler &&>>
 
   67                 next_ = std::forward<Handler>(h);
 
   71             template<
typename Handler,
 
   72                     typename = util::enable_if_rvalue_ref_t<Handler &&>>
 
   74                 next_ = std::forward<Handler>(h);
 
   75                 return std::move(*
this);
 
   83             std::function<void(cluster &)> init_ = util::noop<cluster &>;
 
   84             std::function<boost::optional<member>(cluster &)> next_ = [](cluster &) { 
return boost::none; };
 
   86             friend class connection::ClientConnectionManagerImpl;
 
load_balancer allows you to send operations to one of a number of endpoints(Members).
 
load_balancer & init(Handler &&h) &
Sets the function to be called when load balancer is initialized.
 
load_balancer & next(Handler &&h) &
The function returns the next member to route to.