Interface Locality
-
- All Known Implementing Classes:
CacheLocality,ConsistentHashLocality,SimpleLocality
public interface LocalityFacility for determining the primary ownership/location of a given cache key.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisLocal(Object key)Indicates whether the current node is the primary owner of the specified cache key.
-
-
-
Method Detail
-
isLocal
boolean isLocal(Object key)
Indicates whether the current node is the primary owner of the specified cache key. For local caches, this method will always return true.- Parameters:
key- a cache key- Returns:
- true, if the current node is the primary owner of the specified cache key, false otherwise
-
-