public abstract class GridClientBalancerAdapter extends Object implements GridClientLoadBalancer
| Constructor and Description |
|---|
GridClientBalancerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPreferDirectNodes()
If set to
true balancer should prefer directly connectable
nodes over others. |
protected static Collection<GridClientNode> |
selectDirectNodes(Collection<? extends GridClientNode> nodes)
Returns only directly available nodes from given collection.
|
void |
setPreferDirectNodes(boolean preferDirectNodes)
Sets prefer direct nodes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbalancedNodepublic boolean isPreferDirectNodes()
true balancer should prefer directly connectable
nodes over others.
In other words when working in router connection mode client will prefer send requests to router nodes if operation projection contains some of them.
Default value is false.
GridClientNode.connectable()public void setPreferDirectNodes(boolean preferDirectNodes)
preferDirectNodes - Prefer direct nodes.protected static Collection<GridClientNode> selectDirectNodes(Collection<? extends GridClientNode> nodes)
nodes - Nodes.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.4.0 Release Date : September 24 2015