Class CacheLocality
java.lang.Object
org.wildfly.clustering.infinispan.distribution.CacheLocality
- All Implemented Interfaces:
Locality
A
Locality implementation that delegates to either a ConsistentHashLocality or SimpleLocality depending on the cache mode.
Instances of this object should not be retained for longer than a single unit of work, since this object holds a final reference to the current ConsistentHash, which will become stale on topology change.- Author:
- Paul Ferraro
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CacheLocality
public CacheLocality(org.infinispan.Cache<?, ?> cache)
-
-
Method Details
-
isLocal
Description copied from interface:LocalityIndicates whether the current node is the primary owner of the specified cache key. For local caches, this method will always return true.
-