org.infinispan.client.hotrod.impl.consistenthash
Class ConsistentHashV1
java.lang.Object
org.infinispan.client.hotrod.impl.consistenthash.ConsistentHashV1
- All Implemented Interfaces:
- ConsistentHash
public class ConsistentHashV1
- extends Object
- implements ConsistentHash
Version one consistent hash function based on MurmurHash2
;
- 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 |
ConsistentHashV1
public ConsistentHashV1()
init
public void init(LinkedHashMap<InetSocketAddress,Integer> servers2HashCode,
int numKeyOwners,
int hashSpace)
- Specified by:
init
in interface ConsistentHash
getServer
public InetSocketAddress getServer(byte[] key)
- Specified by:
getServer
in interface ConsistentHash
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.