Simple balancer that relies on random node selection from a given collection. More...
Inherits GridGain::Client::Balancer::IGridClientLoadBalancer.
Public Member Functions | |
| IGridClientNode | BalancedNode< TNode > (ICollection< TNode > nodes) |
| Picks up a random node from a collection. | |
This implementation has no caches and treats each given collection as a new one. More strictly, for any non-empty collection of size n the probability of selection of any node in this collection will be 1/n.
| IGridClientNode GridGain.Client.Balancer.GridClientRandomBalancer.BalancedNode< TNode > | ( | ICollection< TNode > | nodes | ) |
| nodes | Nodes to pick from. |
Implements GridGain.Client.Balancer.IGridClientLoadBalancer.
| TNode | : | IGridClientNode |
1.7.1