Class ConsistentHashFactory
java.lang.Object
org.infinispan.hotrod.impl.consistenthash.ConsistentHashFactory
Factory for
ConsistentHash 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.hotrod.impl.consistenthash.SegmentConsistentHash
or if using the HotRodConfiguration API,
configuration.consistentHashImpl(3, org.infinispan.hotrod.impl.consistenthash.SegmentConsistentHash.class);
The defaults are:
- N/A (No longer used.)
- org.infinispan.hotrod.impl.ConsistentHashV2
- org.infinispan.hotrod.impl.SegmentConsistentHash
- Since:
- 14.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(HotRodConfiguration configuration) <T extends ConsistentHash>
TnewConsistentHash(int version)
-
Constructor Details
-
ConsistentHashFactory
public ConsistentHashFactory()
-
-
Method Details
-
init
-
newConsistentHash
-