Class ConsistentHashFactory
- java.lang.Object
-
- org.infinispan.client.hotrod.impl.consistenthash.ConsistentHashFactory
-
public class ConsistentHashFactory extends Object
Factory forConsistentHash
function. It will try to look into the configuration for consistent hash definitions as follows: consistent-hash.[version]=[fully qualified class implementing ConsistentHash] e.g.infinispan.client.hotrod.hash_function_impl.3=org.infinispan.client.hotrod.impl.consistenthash.SegmentConsistentHash
or if using theConfiguration
API,configuration.consistentHashImpl(3, org.infinispan.client.hotrod.impl.consistenthash.SegmentConsistentHash.class);
The defaults are:
- N/A (No longer used.)
- org.infinispan.client.hotrod.impl.ConsistentHashV2
- org.infinispan.client.hotrod.impl.SegmentConsistentHash
- Since:
- 4.1
- Author:
- Mircea.Markus@jboss.com
-
-
Constructor Summary
Constructors Constructor Description ConsistentHashFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(Configuration configuration)
<T extends ConsistentHash>
TnewConsistentHash(int version)
-
-
-
Method Detail
-
init
public void init(Configuration configuration)
-
newConsistentHash
public <T extends ConsistentHash> T newConsistentHash(int version)
-
-