public class CacheLocality extends Object implements Locality
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.| Constructor and Description |
|---|
CacheLocality(org.infinispan.Cache<?,?> cache) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isLocal(Object key)
Indicates whether the current node is the primary owner of the specified cache key.
|
Copyright © 2018 JBoss by Red Hat. All rights reserved.