public class ConsistentHashFactory extends Object
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.1=org.infinispan.client.hotrod.impl.consistenthash.ConsistentHashV1
or if using the Configuration
API,
configuration.consistentHashImpl(1, org.infinispan.client.hotrod.impl.consistenthash.ConsistentHashV1.class);
If no CH function is defined for a certain version, then it will be defaulted to "org.infinispan.client.hotrod.impl.ConsistentHashV[version]".
E.g. if the server indicates that in use CH is version 1, and it is not defined within the configuration, it will be defaulted to
org.infinispan.client.hotrod.impl.ConsistentHashV1.Constructor and Description |
---|
ConsistentHashFactory() |
public void init(Configuration configuration)
public ConsistentHash newConsistentHash(int version)
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.