Class ConsistentHashLocality
java.lang.Object
org.wildfly.clustering.infinispan.distribution.ConsistentHashLocality
- All Implemented Interfaces:
Locality
Locality implementation based on a ConsistentHash.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionConsistentHashLocality(org.infinispan.Cache<?, ?> cache, org.infinispan.distribution.ch.ConsistentHash hash) ConsistentHashLocality(org.infinispan.distribution.ch.KeyPartitioner partitioner, org.infinispan.distribution.ch.ConsistentHash hash, org.infinispan.remoting.transport.Address localAddress) -
Method Summary
-
Constructor Details
-
ConsistentHashLocality
public ConsistentHashLocality(org.infinispan.Cache<?, ?> cache, org.infinispan.distribution.ch.ConsistentHash hash) -
ConsistentHashLocality
public ConsistentHashLocality(org.infinispan.distribution.ch.KeyPartitioner partitioner, org.infinispan.distribution.ch.ConsistentHash hash, org.infinispan.remoting.transport.Address localAddress)
-
-
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.
-