public class StableHash<T>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
StableHash.HashFunction
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
private java.util.SortedMap<java.lang.Integer,T> |
circle
Deprecated.
|
private StableHash.HashFunction |
hashFunction
Deprecated.
|
private int |
numberOfReplicas
Deprecated.
|
Constructor and Description |
---|
StableHash(StableHash.HashFunction hashFunction,
int numberOfReplicas,
java.util.Collection<T> nodes)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
add(T node)
Deprecated.
|
T |
get(java.lang.Object key)
Deprecated.
|
void |
remove(T node)
Deprecated.
|
private final StableHash.HashFunction hashFunction
private final int numberOfReplicas
private final java.util.SortedMap<java.lang.Integer,T> circle
public StableHash(StableHash.HashFunction hashFunction, int numberOfReplicas, java.util.Collection<T> nodes)