|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.
ClientConfig.isSmartRouting(),
only the operations that are not key based will be router to the endpoint returned by the LoadBalancer. If it is
not ClientConfig.isSmartRouting(), LoadBalancer will not be used.
| Method Summary | |
|---|---|
void |
init(Cluster cluster,
ClientConfig config)
Initializes the LoadBalancer. |
Member |
next()
Returns the next member to route to. |
| Method Detail |
|---|
void init(Cluster cluster,
ClientConfig config)
cluster - the Cluster this LoadBalancer uses to select members from.config - the ClientConfig.Member next()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||