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, setPreferDirectNodes
public GridClientNode balancedNode(Collection<? extends GridClientNode> nodes)
nodes
- Nodes to pick from.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017