Interface that will determine which node should be connected by the client when operation on a key is requested. If implementation of data affinity implements IGridClientTopologyListener interface as well, then affinity will be added to topology listeners on client start before firs connection is established and will be removed after last connection is closed.
Inherited by GridGain.Client.GridClientPartitionAffinity.
List of all members.
Public Member Functions |
| T | Node< T > (Object key, ICollection< T > nodes) |
| | Gets affinity nodes for a key. In case of replicated cache, all returned nodes are updated in the same manner. In case of partitioned cache, the returned list should contain only the primary and back up nodes with primary node being always first.
|
Member Function Documentation
| T GridGain.Client.IGridClientDataAffinity.Node< T > |
( |
Object |
key, |
|
|
ICollection< T > |
nodes | |
|
) |
| | |
- Parameters:
-
| key | Key to get affinity for. |
| nodes | Nodes to choose from. |
- Returns:
- Affinity nodes for the given partition.