public interface ConsistentHash
Modifier and Type | Method and Description |
---|---|
int |
getNormalizedHash(Object object)
Computes hash code of a given object, and then normalizes it to ensure a positive
value is always returned.
|
SocketAddress |
getServer(byte[] key) |
void |
init(Map<SocketAddress,Set<Integer>> servers2Hash,
int numKeyOwners,
int hashSpace) |
void init(Map<SocketAddress,Set<Integer>> servers2Hash, int numKeyOwners, int hashSpace)
SocketAddress getServer(byte[] key)
int getNormalizedHash(Object object)
object
- to hashCopyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.