org.infinispan.client.hotrod.impl.consistenthash
Interface ConsistentHash

All Known Implementing Classes:
ConsistentHashV1, ConsistentHashV2

public interface ConsistentHash

Abstraction for the used consistent hash.

Since:
4.1
Author:
Mircea.Markus@jboss.com

Method Summary
 SocketAddress getServer(byte[] key)
           
 void init(Map<SocketAddress,Set<Integer>> servers2Hash, int numKeyOwners, int hashSpace)
           
 

Method Detail

init

void init(Map<SocketAddress,Set<Integer>> servers2Hash,
          int numKeyOwners,
          int hashSpace)

getServer

SocketAddress getServer(byte[] key)

-->

Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.