public class GridClientRoundRobinBalancer extends GridClientBalancerAdapter implements GridClientTopologyListener
| Constructor and Description |
|---|
GridClientRoundRobinBalancer() |
| Modifier and Type | Method and Description |
|---|---|
GridClientNode |
balancedNode(Collection<? extends GridClientNode> nodes)
Gets next node for executing client command.
|
void |
onNodeAdded(GridClientNode node)
Callback for new nodes joining the remote grid.
|
void |
onNodeRemoved(GridClientNode node)
Callback for nodes leaving the remote grid.
|
isPreferDirectNodes, selectDirectNodes, setPreferDirectNodespublic GridClientNode balancedNode(Collection<? extends GridClientNode> nodes) throws GridClientException
balancedNode in interface GridClientLoadBalancernodes - Nodes to pick from, should not be empty.GridClientException - If balancer can't match given nodes with current topology snapshot.public void onNodeAdded(GridClientNode node)
onNodeAdded in interface GridClientTopologyListenernode - New remote node.public void onNodeRemoved(GridClientNode node)
onNodeRemoved in interface GridClientTopologyListenernode - Left node.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.1 Release Date : May 21 2020