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.
|
GridClientBalancerAdapter |
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 GridClientBalancerAdapter setPreferDirectNodes(boolean preferDirectNodes)
preferDirectNodes - Prefer direct nodes.this for chaining.protected static Collection<GridClientNode> selectDirectNodes(Collection<? extends GridClientNode> nodes)
nodes - Nodes.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023