Class GridNearLockMapping
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.distributed.near.GridNearLockMapping
-
public class GridNearLockMapping extends Object
Key-to node mapping.
-
-
Constructor Summary
Constructors Constructor Description GridNearLockMapping(ClusterNode node, KeyCacheObject firstKey)Creates near lock mapping for specified node and key.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddKey(KeyCacheObject key)Collection<KeyCacheObject>distributedKeys()voiddistributedKeys(Collection<KeyCacheObject> distributedKeys)Collection<KeyCacheObject>mappedKeys()ClusterNodenode()@Nullable GridNearLockRequestrequest()voidrequest(GridNearLockRequest req)StringtoString()
-
-
-
Constructor Detail
-
GridNearLockMapping
public GridNearLockMapping(ClusterNode node, KeyCacheObject firstKey)
Creates near lock mapping for specified node and key.- Parameters:
node- Node.firstKey- First key in mapped keys collection.
-
-
Method Detail
-
node
public ClusterNode node()
- Returns:
- Node to which keys are mapped.
-
mappedKeys
public Collection<KeyCacheObject> mappedKeys()
- Returns:
- Mapped keys.
-
addKey
public void addKey(KeyCacheObject key)
- Parameters:
key- Key to add to mapping.
-
request
@Nullable public @Nullable GridNearLockRequest request()
- Returns:
- Near lock request.
-
request
public void request(GridNearLockRequest req)
- Parameters:
req- Near lock request.
-
distributedKeys
public Collection<KeyCacheObject> distributedKeys()
- Returns:
- Collection of distributed keys.
-
distributedKeys
public void distributedKeys(Collection<KeyCacheObject> distributedKeys)
- Parameters:
distributedKeys- Collection of distributed keys.
-
-