public class GridNearLockMapping<K,V> extends Object
| Constructor and Description |
|---|
GridNearLockMapping(ClusterNode node,
K firstKey)
Creates near lock mapping for specified node and key.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addKey(K key) |
Collection<K> |
distributedKeys() |
void |
distributedKeys(Collection<K> distributedKeys) |
Collection<K> |
mappedKeys() |
ClusterNode |
node() |
GridNearLockRequest<K,V> |
request() |
void |
request(GridNearLockRequest<K,V> req) |
String |
toString() |
public GridNearLockMapping(ClusterNode node, K firstKey)
node - Node.firstKey - First key in mapped keys collection.public ClusterNode node()
public Collection<K> mappedKeys()
public void addKey(K key)
key - Key to add to mapping.@Nullable public GridNearLockRequest<K,V> request()
public void request(GridNearLockRequest<K,V> req)
req - Near lock request.public Collection<K> distributedKeys()
public void distributedKeys(Collection<K> distributedKeys)
distributedKeys - Collection of distributed keys.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015