public class Hasher<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Hasher.NodeFactor<T> |
static class |
Hasher.NodeList<T> |
Modifier and Type | Field and Description |
---|---|
private Hasher.NodeList<T> |
nodes |
Constructor and Description |
---|
Hasher() |
Modifier and Type | Method and Description |
---|---|
void |
add(T node)
Adds a node with load factor 100
|
void |
add(T node,
int load)
Adds a code with a load factor.
|
Hasher.NodeList<T> |
getNodes()
Returns a list of nodes that are up.
|
void |
remove(T node)
Removes a node
|
private volatile Hasher.NodeList<T> nodes
public void add(T node)
public void add(T node, int load)
public void remove(T node)
public Hasher.NodeList<T> getNodes()
Copyright © 2018. All rights reserved.