org.infinispan.client.hotrod.impl.consistenthash
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.ConsitentHashV1
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() |
Modifier and Type | Method and Description |
---|---|
Map<Integer,String> |
getVersion2ConsistentHash() |
void |
init(ConfigurationProperties config,
ClassLoader classLoader) |
ConsistentHash |
newConsistentHash(int version) |
public void init(ConfigurationProperties config, ClassLoader classLoader)
public ConsistentHash newConsistentHash(int version)
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.