Class ConsistentHashFactory


  • public class ConsistentHashFactory
    extends Object
    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.client.hotrod.impl.consistenthash.SegmentConsistentHash or if using the Configuration API, configuration.consistentHashImpl(3, org.infinispan.client.hotrod.impl.consistenthash.SegmentConsistentHash.class);

    The defaults are:

    1. N/A (No longer used.)
    2. org.infinispan.client.hotrod.impl.ConsistentHashV2
    3. org.infinispan.client.hotrod.impl.SegmentConsistentHash
    Since:
    4.1
    Author:
    Mircea.Markus@jboss.com
    • Constructor Detail

      • ConsistentHashFactory

        public ConsistentHashFactory()
    • Method Detail

      • newConsistentHash

        public <T extends ConsistentHash> T newConsistentHash​(int version)