public class Continuum extends Object
| Modifier and Type | Field and Description |
|---|---|
private TreeMap<Integer,RawMemcacheClient> |
ringOfFire |
private static int |
VNODE_RATIO |
| Constructor and Description |
|---|
Continuum(Collection<AddressAndClient> clients) |
| Modifier and Type | Method and Description |
|---|---|
private static byte[] |
addressToBytes(String s) |
private TreeMap<Integer,RawMemcacheClient> |
buildRing(Collection<AddressAndClient> clients) |
RawMemcacheClient |
findClient(byte[] key) |
private RawMemcacheClient |
findClient(Map.Entry<Integer,RawMemcacheClient> entry) |
private static final int VNODE_RATIO
private final TreeMap<Integer,RawMemcacheClient> ringOfFire
public Continuum(Collection<AddressAndClient> clients)
private TreeMap<Integer,RawMemcacheClient> buildRing(Collection<AddressAndClient> clients)
public RawMemcacheClient findClient(byte[] key)
private RawMemcacheClient findClient(Map.Entry<Integer,RawMemcacheClient> entry)
private static byte[] addressToBytes(String s)
Copyright © 2015 Spotify AB. All Rights Reserved.