public class GridClientRandomBalancer extends GridClientBalancerAdapter
More strictly, for any non-empty collection of size n the probability of selection of any node in this collection will be 1/n.
| Constructor and Description |
|---|
GridClientRandomBalancer() |
| Modifier and Type | Method and Description |
|---|---|
GridClientNode |
balancedNode(Collection<? extends GridClientNode> nodes)
Picks up a random node from a collection.
|
isPreferDirectNodes, selectDirectNodes, setPreferDirectNodespublic GridClientNode balancedNode(Collection<? extends GridClientNode> nodes)
nodes - Nodes to pick from.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018