org.infinispan.client.hotrod.impl.consistenthash
Class ConsistentHashFactory
java.lang.Object
org.infinispan.client.hotrod.impl.consistenthash.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.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.
- Since:
- 4.1
- Author:
- Mircea.Markus@jboss.com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsistentHashFactory
public ConsistentHashFactory()
init
public void init(ConfigurationProperties config)
newConsistentHash
public ConsistentHash newConsistentHash(int version)
getVersion2ConsistentHash
public Map<Integer,String> getVersion2ConsistentHash()
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.