}
}
@Override
public void updateHashFunction(LinkedHashMap<InetSocketAddress,Integer> servers2HashCode, int numKeyOwners, short hashFunctionVersion, int hashSpace) {
ConsistentHash hash = hashFactory.newConsistentHash(hashFunctionVersion);
if (hash == null) {
log.warn("No hash function configured for version: " + hashFunctionVersion);
} else {
hash.init(servers2HashCode, numKeyOwners, hashSpace);
}
consistentHash = hash;
}