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